company logo

Client :: disconnect - Disconnect from server

The function will disconnect the client from the server. In contrast to close(), which will disconnect when closing the last client handle, this function will disconnect immediately.

Make sure, that all resources (dictionaries, database, properties) are closed before disconnecting the client. Disconnecting the client before closing all opened handles may cause problems and not all changes might be stored.

Notes:

Disconnecting a client handle will affect all client handles referring to the same client object. Since usually, most client handles in an application refer to the main client, disconneting the main client might become dangereous. A better way is closing all client handles, in which case the last client handle automatically disconnects the client.

Implementation details

Client  :: disconnect (  )