Contents - Index


4.2.3.8 Connect

HRESULT SLS_Connect(
                                       LPCSTR lpszServer,
                                       int nPort)

The SLS_Connect establishes the connection with the Sheriff server.

Parameters

lpszServer

Points to a string that contains the address of the server. This can be in the format of an IP address or a URL, such as 210.88.543.98, http://licensing.yourdomain.com

nPort

The port number that Sheriff Server listens to. By default, Sheriff Server listens to port 8080.

Return Values

SLS_SUCCESS if the function is successful. Otherwise an error status code is returned to indicate the cause of the error.

Remarks

SLS_Connect is only available in the network version of Sheriff.