MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system
Sends a custom command.
procedure SendCommand(ToUserID: Cardinal; Command: Cardinal; var Buffer; Size: Integer);
Call SendCommand to send a custom command to the server which client is connected to.
ToUserID is an unique ID of the client you send a command to.
Command is an identifier of your command.
Buffer is a binary data you can send with your command.
Size is a length of the Buffer in bytes.
To receive messages on a server side, set event handler TMsgServer.OnReceiveCommand.