Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


 
Deletes a defined server context identified by its unique server context id.
Related functions: edmiDefineServerContext, edmiDefineServerContextsFromFile, edmiDeleteAllServerContexts, edmiDeleteServerContextBN, edmiGetAllServerContexts, edmiGetServerContextId, edmiGetServerContextProperties, edmiResetServerContext, edmiWriteServerContextsToFile.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiDeleteServerContext(SdaiUnsignedInt serverContextId);
Arguments:

serverContextId

The unique numeric identificator representing the defined server context.

Returns:
A completion code of data type EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
Example:
EdmiError rstat;
SdaiUnsignedInt contextId;
SdaiInteger nConnect;
SdaiWhoIsOnServer pWhoisOn;
. . .
rstat = edmiDefineServerContext("HTTP_ServerContext",
"Johnny", "Supervisor", "4cg67w", 
"HTTP", "9090", "MyEdmServer",
"c:/HttpServlet", "7408", "MyHttpServer", 
NULL, NULL, &contextId);
rstat = edmiRemoteWhoIsOn(contextId, &nConnect, &pWhoisOn, NULL);
rstat = edmiDeleteServerContext(contextId);
. . .

  • No labels