MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system
Sends a custom command.
function SendCommand(ToUserID: Cardinal; Command: Cardinal; Buffer: PChar; Size: Integer): Integer;
Call SendCommand to send a custom command to a client which is connected to this server.
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 client side, set event handler TMsgClient.OnReceiveCommand.
If SendCommand finished successfully it will return MSG_COMMAND_OK.
SendCommand can return one of the following error codes: