FileTransferStart Method
      
 

Description
Called when file transfer starts.

Return Type

None  


Syntax

object.FileTransferStart Owner, Contact, File, Action



The FileTransferStart Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodXMPPNotify.
Owner Required. A wodXMPP object.
Contact A XMPPContact object. Reference to contact that is sending/receiving the file.
File A XMPPFile object. Reference to file that is being sent/received.
Action A XMPPActionsEnum enumeration, as described in settings. Allows you to decide wether to allow or deny the file transfer.

Remarks

This method is called only if you implemented IwodXMPPNotify interface in your application, and wodXMPP.Notification property has received reference to instance of your implementation.

This notification method will be called when file is about to be transferred. It can be result of your SendFile call, or when remote side initiates file transfer. At this point you can change any File object's properties to tweak transfer the way you need it - such as specifying full path in Name property, change DataIP etc.

 
After this notification method is called, FileTransferProgress notification will be called several times as file is transferred. At the end of file transfer FileTransferEnd notification will be called.