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


Occurs when a new Stream arrives.

type TMsgOnReceiveStream = procedure (
      const FromUserID, StreamID:       Cardinal;
      const SendingDate, DeliveryDate:    TDateTime;
      FullSize:             Int64;
      BlockSize, BlockNo, Blocks:       Integer;
      Directly:             Boolean
                ) of object;

OnReceiveStream: TMsgOnReceiveStream;

OnReceiveStream occurs when the server receives request from client which starts stream sending.

FromUserID is an unique (at this server) ID of the sender, i.e. UserID of the client.
StreamID is an unique identifier assigned by the server to this stream.
SendingDate - date and time when stream was sent, always equal to zero.
DeliveryDate - date and time when stream was delivered, always equal to zero.
FullSize - size of the stream in bytes.
BlockSize - maximum size (in bytes) of one block (latest block can be less).
BlockNo - number of current block (starting from 0), always equal to -1 that means request for sending which does not contain stream data.
Blocks - number of blocks the stream will be split in transmission.
Directly - always equal to False.

© AidAim Software MsgCommunicator: