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 Current »


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

serverContextName

The name of the server context to delete.

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;
SdaiString ServerContextName = "HTTP_ServerContext";
SdaiInteger nConnect;
SdaiWhoIsOnServer pWhoisOn;
. . .
rstat = edmiDefineServerContext(ServerContextName,
"Johnny", "Supervisor", "4cg67w", 
"HTTP", "9090", "MyEdmServer",
"c:/HttpServlet", "7408", "MyHttpServer", 
NULL, NULL, &contextId);
rstat = edmiRemoteWhoIsOn(contextId, &nConnect, &pWhoisOn, NULL);
rstat = edmiDeleteServerContextBN(ServerContextName);
. . .

  • No labels