Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » MobiLink - Client Administration » Introduction to SQL Anywhere Clients for MobiLink » Dbmlsync API » Dbmlsync API for C++

 

Ping method

Sends a ping request to the dbmlsync server to check if the connection is good and if the server is live and responding to requests.

Syntax
bool Ping( unsigned timeout )
Remark

You must be connected to a server to call this method.

Parameters
  • timeout¬†¬† The maximum number of milliseconds to wait for the server to respond to the ping request.

Return value

Returns true if a response was received from the server to the ping request.

Returns false is a response to the ping request was not received. When false is returned, you can call the GetErrorInfo method to get more information about the failure. See GetErrorInfo method.