MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system
Opens a connection.
Call Connect to establish a connection to the server.
Connect sends command to the server, waits for an answer, then receive contacts list of this client and sets the Connected property to True if this operation executed successfully. You can check Connected property to learn does this client has opened connection(s) or not.
If your user is registered on the serve, you can should specify UserID property before calling Connect. In Other case, you must set UserID to MSG_INVALID_USER_ID before calling Connect then call RegisterNewUser to obtain valid UserID.
If direct connection and messaging is allowed by AllowDirectly property, the client will be prepared to establish direct connections with another user. To forbid direct messaging, you can set AllowDirectly to False before calling Connect or set Active to False after Connect finished.