Classes

  Class Description
Public class AS400Parser
Parser responsible for handling FTP directory listing returned in AS400 format.

Examples

The following is a partial example listing of the format expected.
CopyC#
agonzalez   1148    07/12/06  17:15:29   *DIR    Archive/
agonzalez   8192    01/01/70  02:00:00   *FLR    QDLS/
agonzalez   1288    08/07/06  14:19:08   *STMF   eye.asc
agonzalez   4096    01/01/70  02:00:00   *STMF   jaase
Public class ConnectEnterpriseParser
The parser responsible for handling FTP directory listings returned in a UNIX format.
Public class Ftp
Implements the basic functionality of a FTP client.
Public class Ftp..::..AuthSslStrategy
The ordinal FTP connection with following protection.
Public class Ftp..::..ConnectionStrategy
The connection strategy.
Public class Ftp..::..DefaultStrategy
The default connection strategy.
Public class Ftp..::..ImplicitSSLStrategy
The implicit SSL connection strategy.
Public class Ftp..::..TlsStrategy
The TLS connection strategy.
Public class FtpChangeLocalDirEventArgs
Contains the data of the FtpChangeLocalDirEventHandler.
Public class FtpChangeRemoteDirEventArgs
Contains the data of the FtpChangeRemoteDirEventHandler.
Public class FtpCommandEventArgs
Contains the data of the FtpCommandEventHandler.
Public class FtpConnectEventArgs
Contains the data of the FtpConnectEventHandler.
Public class FtpConnectionLostException
This exception is thrown when a connection to the FTP server is unexpectedly lost.
Public class FtpDownloadEventArgs
Contains the data of the FtpDownloadEventHandler.
Public class FtpException
FtpException is thrown by many methods of Ftp class.
Public class FtpFile
Represents an item in a directory listing retrieved from FTP server.
Public class FtpFileFilter
This is a Utility class that applies a filter to a set of FtpFile instances.
Public class FtpFileSort
Sorts a enumeration of
CopyC#
FtpFile
. The user have to specify a comparator instance which will be used by the sort algorithm. The sort is made by default in ascendent way, however, you can change that property. The sort can be made by file name, date or size too. To change the sorter field it is necessary to specify the corresponding comparator.

Examples

The following is an example usage:
CopyC#
Ftp ftp = new Ftp("ftp.myserver.com","anonymous","user@here.com");
ftp.Connect();

// Get the remote files enumeration
IEnumerator e = ftp.GetDirListing();

//Creates the sorter
FtpFileSort sort = new FtpFileSort(e);

// Ascendent way
sort.Ascendent = true;

// Sortes the enumeration data
e = sort.Sort(FtpFileSort.Comparator.date);
Public class FtpListingEventArgs
Contains the data of the FtpListingEventHandler.
Public class FtpProgressEventArgs
Contains the data of the FtpProgressEventHandler.
Public class FtpTimeoutException
This exception is thrown when a network timeout is encountered when trying to connect or transfer a file.
Public class Fxp
Implements the functionality of a basic FXP (FTP server to FTP server transfer).
Public class FxpEndEventArgs
Contains the data of the FxpEndEventHandler.
Public class FxpFailedEventArgs
Contains the data of the FxpFailedEventHandler.
Public class FxpStartEventArgs
Contains the data of the FxpStartEventHandler.
Public class NTParser
The NTParser is responsible for handling FTP directory listings returned in a Windows NT format.
Public class UnixParser
The parser responsible for handling FTP directory listings returned in a UNIX format.
Public class VMSParser
The parser responsible for handling FTP directory listings returned in VMS format.

Delegates

  Delegate Description
Public delegate FtpChangeLocalDirEventHandler
Represents the method that will handle the event that has FtpChangeLocalDirEventArgs.
Public delegate FtpChangeRemoteDirEventHandler
Represents the method that will handle the event that has FtpChangeRemoteDirEventArgs.
Public delegate FtpCommandEventHandler
Represents the method that will handle the event that has FtpCommandEventArgs.
Public delegate FtpConnectEventHandler
Represents the method that will handle the event that has FtpConnectEventArgs.
Public delegate FtpDownloadEventHandler
Represents the method that will handle the event that has FtpDownloadEventArgs.
Public delegate FtpListingEventHandler
Represents the method that will handle the event that has FtpListingEventArgs.
Public delegate FtpProgressEventHandler
Represents the method that will handle the event that has FtpProgressEventArgs.
Public delegate FxpEndEventHandler
Represents the method that will handle the event that has FxpEndEventArgs.
Public delegate FxpFailedEventHandler
Represents the method that will handle the event that has FxpFailedEventArgs.
Public delegate FxpStartEventHandler
Represents the method that will handle the event that has FxpStartEventArgs.

Enumerations

  Enumeration Description
Public enumeration DirectoryStyles
Flag to indicate which directory style listing is used.
Public enumeration FtpFileSort..::..Comparator
Public enumeration ProxyTypes
The type of proxy servers.
Public enumeration TransferModes
Flag to indicate which transfer mode is used.
Public enumeration TransmitModes
Flag to indicate which transmit mode is used.