Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Returns the ids of all defined server contexts in a buffer.
Related functions: edmiDefineServerContext, edmiDefineServerContextsFromFile, edmiDeleteAllServerContexts, edmiDeleteServerContext, edmiDeleteServerContextBN, edmiGetServerContextId, edmiGetServerContextProperties, edmiResetServerContext, edmiWriteServerContextsToFile.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetAllServerContexts(SdaiUnsignedInt **serverContextIds,
                                    SdaiInteger     *numberOfServerContexts);
Arguments:

...

 

Code Block
languagecpp
themeConfluence
EdmiError edmiGetAllServerContexts(SdaiUnsignedInt **serverContextIds,
                                    SdaiInteger     *numberOfServerContexts);

Returns the ids of all defined server contexts in a buffer.

Arguments

...

*
TypeNameComment
SdaiUnsignedInt

serverContextIds

Pointer that will receive the address of an allocated buffer containing all defined server contexts. Use edmiFree to free the allocated memory.

SdaiInteger

numberOfServerContexts

Variable that will receive the number of server contexts in the returned server context buffer.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
 EdmiError rstat;
 SdaiString contextFile = "c:/data/myServerContexts";

...


 SdaiUnsignedInt contextId, *pContextId;

...


 SdaiInteger nContext;

...


 . . .

...


 /* define four contexts */

...


 rstat = edmiDefineServerContext("LOCAL_DB_ServerContext",

...


 "Johnny", NULL, "4cg67w", "LOCAL_DB", NULL,

...

 
 NULL, NULL, NULL, NULL, NULL, NULL, &contextId);

...

 
 rstat = edmiDefineServerContext("LOCAL_CONTEXT_ServerContext",

...


 "Johnny", NULL, "4cg67w", "LOCAL_CONTEXT", NULL,

...

 
 NULL, NULL, NULL, NULL, NULL, NULL, &contextId);

...

 
 rstat = edmiDefineServerContext("HTTP_ServerContext",

...


 "Johnny", "Supervisor", "4cg67w",

...

 
 "HTTP", "9090", "MyEdmServer",

...


 "c:/HttpServlet", "7408", "MyHttpServer",

...

 
 "1412", "192.136.64.13", &contextId);

...


 rstat = edmiDefineServerContext("TCP_ServerContext",

...


 "Johnny", "Supervisor", "4cg67w",

...

 
 "TCP", "9090", "MyEdmServer",

...

 
 NULL, NULL, NULL, NULL, NULL, &contextId);

...

 
 /* Write all contexts to file */

...


 rstat = edmiWriteServerContextsToFile("*",

...


 contextFile, PARTIAL_MATCH);

...

 
 /* Delete all contexts */

...

 
 rstat = edmiDeleteAllServerContexts();

...

 
 /* Redefine two contexts from file */

...


 rstat = edmiDefineServerContextsFromFile("LOCAL_*",

...

  
 contextFile, PARTIAL_MATCH);

...

 
 /* Get all context ids */

...


 rstat = edmiGetAllServerContexts(&pContextId, &nContext);

...


 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"