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


TMsgServer.SendMessage
TMsgServer
Top 

Sends a custom message to client.

procedure SendMessage(ToUserID: Cardinal; const Text: String); overload;
procedure
SendMessage(ToUserID: Cardinal; Buffer: PChar; Size: Integer); overload;
procedure
SendMessage(ToUserID: Cardinal; Stream: TStream); overload;

Description

Call SendMessage to send a custom message to a client which is connected to this server.
ToUserID is an unique ID of the user you send a message to.
Text is a text of the message.
Buffer is a binary buffer (may be nil).
Size is a size of the binary buffer (must be >= 0).
Stream is a stream with message data.

To receive message from client, set one of the following event handlers:
OnReceiveTextMessage
OnReceiveBinaryMessage
OnReceiveStreamMessage




© AidAim Software MsgCommunicator: