Terminates the actual EDMserver process. The EDMserver process will not terminate before all connected clients have disconnected. No new connections from the clients are accepted after the edmiStopServer function is executed.
The EDMdatabase used by the actual EDMserver will be closed before the EDMserver is terminated.
This function is protected by the superuser password, i.e. this function can be performed by the superuser and any other users that can supply the password of the superuser.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiStopServer(SdaiString password,
SdaiClientId clientId,
SdaiOptions options);
Arguments:
password | The password of the EDMuser superuser. If the calling user is already connected as EDMuser superuser, the <password> argument is dummy. |
clientId | |
options |
Returns:
A completion code of datatype 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.
EdmiError rstat;
...
if (rstat = edmiStopServer ("x@dkh-a")) {
/* Error in operation */
printf("\nError in edmiStopServer: %s",
edmiGetErrorText(rstat));
goto error;
}
. . .