MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system
Occurs when a new command arrives.
type TMsgOnReceiveCommand = procedure (const FromID, Command: Cardinal; var Buffer; Size: Integer) of object;
property OnReceiveCommand: TMsgOnReceiveCommand;
Description
OnReceiveCommand occurs when the client received a custom command.
FromID is an unique (at this server) ID of the sender, i.e. UserID or ServerID.
Command is an identifier of your command.
Buffer is an additional binary data you can send with your command.
Size is a length of the Buffer in bytes.
|