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 the recipient (user or server).
ToUserID is an identifier of the recipient, i.e. UserID or ServerID.
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: Delphi Messenger Sdk Instant Messaging Sdk Im Sd