Specifies the location of the default Natural Access Server (ctdaemon) with which the client application communicates.
DWORD ctaSetDefaultServer ( char *address)
|
Argument |
Description |
|
address |
Pointer to the server address or object descriptor string. |
|
Return value |
Description |
|
SUCCESS |
|
|
CTA_BAD_ARGUMENT |
Invalid server address. |
|
CTAERR_NOT_IMPLEMENTED |
Function is not available in the execution mode associated with the specified context. |
|
CTAERR_NOT_INITIALIZED |
Natural Access is not initialized. Call ctaInitialize first. |
ctaSetDefaultServer specifies the location of the default Natural Access Server (ctdaemon) with which the client application communicates. This function overrides the default server assigned in the cta.cfg file.
int DemoSetDefaultServer()
{
int ret;
ret = ctaSetDefaultServer("cta://nms-server.company.com/");
return ret;
}