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


TMsgServer.OnReceiveBinaryMessage
TMsgServer
Top 

Occurs when the client receives a custom message.

type TMsgOnReceiveBinaryMessage = procedure (
      const FromUserID:          Cardinal; 
      const SendingDate,DeliveryDate:    TDateTime; 
      Buffer:             PAnsiChar; 
      Size:                Integer

                       ) of object;

property OnReceiveBinaryMessage: TMsgOnReceiveBinaryMessage;

Description
OnReceiveBinaryMessage occurs when the client receives a custom binary message.
FromUserID is an identifier of the sender, i.e. UserID or ServerID.
SendingDate - date and time when message was sent.
DeliveryDate - date and time when message was delivered.
Buffer is a binary data of the message.
Size is a length of the Buffer in bytes.
You can send message using SendMessage method.



© AidAim Software MsgCommunicator: