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

SQL Anywhere 11.0.1 (Français) » MobiLink - Client Administration » SQL Anywhere Clients for MobiLink » Dbmlsync API » Dbmlsync API for C++


WaitForServerShutdown method

The WaitForServerShutdown method returns when the server has shutdown or when the timeout expires, whichever comes first.

bool WaitForServerShutdown( unsigned timeout )

WaitForServerShutdown can only be called after the ShutdownServer method is called. See ShutdownServer method.

  • timeout   Indicates the maximum time in milliseconds to wait for the server to shutdown. Use DBSC_INFINITY to wait forever.


Returns true if the method returned because the server shutdown.

Returns false otherwise. When false is returned, you can call the GetErrorInfo method to get more information about the failure. See GetErrorInfo method.