Rufen Sie uns an: +1-877-99-BOPUP

IServerClient::TestConnection method

Makes a test connection to the IM server using the given address and TCP/IP port. This function can be used for verification purposes to check a presence of the IM server. The function does not establish a session with the IM server, it disconnects once the IM server accepts a connection.

HRESULT TestConnection(     LPSTR lpszServerAddress,     WORD wServerPort, );


[in] Pointer to a null-terminated text buffer that contains the name or address of the IM server. The address can be IP address or DNS name of a computer. Size of the buffer must not exceed 255 symbols of length.
[in] WORD variable that specifies TCP/IP port on the IM server to connect to. Set this parameter to 0 value to use default port.

Return Value

Connection to the IM server is successful.
Cannot connect to the IM server because it is not found or not running. Check the server address and port.