IP*Works! 2016 .NET Edition
IP*Works! 2016 .NET Edition
Questions / Feedback?

StartTransfer Event

Fired when a file transfer begins.

Syntax

[VB.NET]
Public Event OnStartTransfer As OnStartTransferHandler
[C#]
public event OnStartTransferHandler OnStartTransfer;

public delegate void OnStartTransferHandler(object sender, XmppStartTransferEventArgs e);

class XmppStartTransferEventArgs : EventArgs {
  int Direction {get;}
  string FileId {get;}
  string User {get;}
  string Domain {get;}
  string Resource {get;}
  string Filename {get; set;}
  string Datetime {get;}
  long Size {get;}
  bool Accept {get; set;}
}

Remarks

When a file is received, the XMPP component will parse the sender's Jabber ID into the User, Domain, and Resource fields. The FileId and Filename parameters identify the current transfer. Within this event you may override the Filename by setting the Filename parameter. At this time you may also set LocalDirectory if it is not already set or call SetReceiveStream.

When a sending a file, the XMPP component will parse the receiver's Jabber ID into the User, Domain, and Resource fields.

The Direction parameter shows whether the client (0) or the server (1) is sending the data.

 
 
Copyright (c) 2020 /n software inc. - All rights reserved.
IP*Works! 2016 .NET Edition - Version 16.0 [Build 7353]