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
Boolean Ping(UInt32 timeout)
Remarks

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. Use DBSC_INFINITY to wait forever. The DBSC_INFINITY constant is defined within the DbmlSyncClient class and not in the namespace, so you need to preface the constant. For example, timeout = DbmlSyncClient.DBSC_INFINITY;.

Returns

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

Returns false if 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.