ServerConnect

Reads the properties to determine the configuration settings and makes a connection to the server.

Note: C uses the HTTP, HTTPS, or SOCKET server connection protocol. HTTP and HTTPS logically establish a client connection but do not actually connect to the server until a GetService or Process method is invoked. The SOCKET protocol establishes a connection to the server when Connect is invoked.

Syntax

int serverConnect(Server* server) 

Parameters

  • Server—the server to which the client connects

Results

Returns 0 (if successful) or error code.

Example

int nRet;
nRet = serverConnect(server);