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


TMsgServer.OnReceiveFile
TMsgServer
Top 

Occurs when a new file arrives.

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

property
OnReceiveFile: TMsgOnReceiveFile;

Description
OnReceiveFile occurs when the server receives request from client which starts file sending.

FromUserID is an unique (at this server) ID of the sender, i.e. UserID of the client.
FileID is an unique identifier assigned by the server to this file.
FileName - name of the file specified by client.
SendingDate - date and time when file was sent, always equal to zero.
DeliveryDate - date and time when file was delivered, always equal to zero.
FullSize - size of the file 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 file data.
Blocks - number of blocks the file will be split in transmission.
Directly - always equal to False.



© AidAim Software MsgCommunicator: Delphi Messenger Sdk Instant Messaging Sdk Im Sdk