MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system


TMsgClient.Logoff
TMsgClient
Top 

Log out from the server.

function Logoff: Integer;

Description
Call Logoff to log out.

Logoff sends command to the server, waits for an answer, then sets the Logged property to False if this operation has been executed successfully.

You must be connected to the server before calling Logoff.

You should specify UserID property before calling Logoff. If your user has registered on the server with a password, you should specify Password property before calling Logoff.

Logoff returns the following result codes:

Name
Value
MSG_Error_Logoff_NotConnected
60099
MSG_Error_Logoff_SendCommandFailed
60099
MSG_Error_Logoff_ReceiveResultFailed
60100
MSG_Error_Logoff_UserDoesNotExist
60101
MSG_Error_Logoff_InvalidPassword
60102
MSG_Error_Logoff_InvalidServerReply
60103
MSG_Error_Logoff_InvalidParams
60115
MSG_Error_Logoff_InternalServerError
60116
MSG_Error_Logoff_UserNotLogged
60117


Also you can check Logged property to learn does this user is still logged in or not.



© AidAim Software MsgCommunicator: