Client :: serverPort - Get port number
The function returns the port number for the client when running in client server mode. Otherwise it returns 0.
When passing an invalid client handle, the function throws an exception.
if ( myClient.port() != 0 )
printf("I am a server client");
Return value: Port number ( int32 )
The port number must be the same the server has been started with (e.g. 6123). When no port number is passed, the client expects the port number being defined in a system variable SERVER_PORT or in a system environment ini-file on the ODABA installation folder.