pilg_getdefserverinfo

This function returns information for the default server including name, node id and port number.

C format

PIINT32 pilg_getdefserverinfo(

LPSTR     lpszServerNameBuf,

int32 PIPTR * plBufSize,

int32 PIPTR * plNodeId,

int32 PIPTR * plPort)

Returns

> 0

System error

0

Success

-103

Application is not registered

-106

No servers configured (pilogin.ini not found)

Arguments

lpszServerNameBuf (returned)

Server name - pointer to null terminated string.

plBufsize (passed, returned)

Pointer to the length of the server name buffer - on input it contains the length of the lpszServerNameBuf, on return it contains the actual length of the server name

plNodeId ( returned)

Pointer to the node id of the server

plPort ( returned)

Pointer to the port number used by the server

Usage Notes

If the buffer is not large enough to hold the server name the name is truncated.

Enabling Operational Intelligence