MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system
Occurs when the client sends a file or its successive portion.
type TMsgOnSendFile = procedure (const ToUserID,
FileID: Cardinal;
const FileName: String;
FullSize: Int64;
BlockSize, BlockNo, Blocks: Integer) of object;
property OnSendFile: TMsgOnSendFile;
Description
OnSendFile occurs when the client sends a file or its following portion.
ToUserID is an unique idetifier of a recepient, client or server.
FileID is a unique identifier of the file assigned by the server (or receiving client in case of direct sending).
FileName - name of the file on the sender side (path is not included).
Blocks - number of blocks the file will be split in transmission.
BlockSize - maximum size (in bytes) of one block (latest block can be less).
You can send message to client using SendFile method.
|