pilg_setservernode

This function sets the server context. After setting the server context, all the requests against the PI database, go to this server. If a change of server is required, another call to pilg_setservernode should be issued.

C format

PIINT32 pilg_setservernode(

LPCSTR lpszServerName)

Returns

>0

System error

Success

-5

The server has been disconnected globally bu issuing pilg_disconnectnode or was never connected

-6

The server specified does not exist

-103

Application is not registered

-106

No servers configured (pilogin.ini not found)

Arguments

lpszServerName(passed)

server name.

Usage Notes

Unlike its counterpart piut_setservernode, pilg_setservernode will not perform a connection. It is used merely to switch between existing connections.

Enabling Operational Intelligence