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


TMsgServer.GetClients
TMsgServer
Top 

Retrieves information about all clients connected to the server.

procedure GetClients(var Clients: TMsgClientInfoArray);

Description
Call GetClients to get connection parameters of all clients currently connected to the server.

You can use IsClientConnected method later to ensure that client is still connected.

To keep up array of clients in actual status, use OnUserRegistered to trace changes in server database of registered users, and also BeforeConnect / AfterConnect and BeforeDisconnect / AfterDisconnect event handlers to know about new clients and old clients has been disconnected. To learn connection details of new connected client, call GetUserInfo method.


© AidAim Software MsgCommunicator: