edmiResetServerContext
Â
EdmiError edmiResetServerContext(SdaiServerContext serverContextId);
Forces the EDMclient to reinitialize the communication with the EDMserver the next time an edmiRemote API function is invoked. Defining a server context does not initialize communication with an EDMserver by itself. Initialization happens the first time the server context is used as input parameter by an edmiRemote API function call. After that, the communication remains configured for all succeeding function calls. If, for some reason, the communication should come to a stop, this function will reset the initialized-flag of the server context, thereby forcing a reinitialization as part of the next invocation of an edmiRemote function.
Arguments
Type | Name | Comment |
SdaiServerContext | serverContextId | The unique numeric identificator of the server context to reinitialize. |
Return Value
Options
Â
Example
Â
 EdmiError rstat; SdaiUnsignedInt contextId; SdaiString ServerContextName = "HTTP_ServerContext"; SdaiInteger nConnect; SdaiWhoIsOnServer pWhoisOn; . . . rstat = edmiDefineServerContext(ServerContextName, "Johnny", "Supervisor", "4cg67w", "HTTP", "9090", "MyEdmServer", "c:/HttpServlet", "7408", "MyHttpServer", NULL, NULL, &contextId); . . . retry: rstat = edmiRemotePutAttrsBN(contextId, instId, 2, NULL, "NAME", sdaiSTRING, "Johnny", "AGE", sdaiINTEGER, 36); if (rstat == edmiE_NO_APPSERVER) { rstat = edmiResetServerContext(contextId); goto retry; } . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â