Click or drag to resize

ITFtpTransfer Interface

Represents a single data transfer between a TFTP server and client.

Namespace: GSF.Net.TFtp
Assembly: GSF.Net (in GSF.Net.dll) Version: 2.4.207-beta
Syntax
public interface ITFtpTransfer : IDisposable
View Source

The ITFtpTransfer type exposes the following members.

Properties
 NameDescription
Public propertyBlockCounterWrapping TFTP can transfer up to 65535 blocks. After that, the block counter wraps to either zero or one, depending on the expectations of the client.
Public propertyBlockSize Transfer block size. Set this member to control the TFTP block size option (RFC 2349).
Public propertyExpectedSize Expected transfer size in bytes. 0 if size is unknown.
Public propertyFilename Filename for the transferred file.
Public propertyRetryCount Number of times that a RetryTimeout may occur before the transfer is cancelled with a TimeoutError.
Public propertyRetryTimeout Timeout after which commands are sent again. This member is also transmitted as the TFTP timeout interval option (RFC 2349).
Public propertyTransferMode Requested TFTP transfer mode. For outgoing transfers, this member may be used to set the transfer mode.
Public propertyUserContext You can set your own object here to associate custom data with this transfer.
Top
Methods
 NameDescription
Public methodCancel Cancel the currently running transfer, possibly sending the provided reason to the remote endpoint.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public methodStart Call this function to start the transfer.
Top
Events
 NameDescription
Public eventOnError Event that will be called if there is an error during the data transfer. Currently, this will return instances of ErrorFromRemoteEndpoint or NetworkError.
Public eventOnFinished Event that will be called once the data transfer is finished.
Public eventOnProgress Event that is being called while data is being transferred.
Top
See Also