Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.9k views
in .NET FTP by (260 points)
Apart syntax differences, FTPConnection and FTPClient appear to perform the same. Is this correct? Should one object be used over the other? I am sending personnel updates in ASCII files to a vendor site once a day. The files are < 100k.

Thank you.

4 Answers

0 votes
by (162k points)
They both can be used for FTP and have roughly the same FTP functionality. FTPConnection is however a .NET component and can be dropped on Windows forms.

FTPClient will eventually be deprecated so in general you should use FTPConnection.
0 votes
by (260 points)
Bruce,

Thank you for the info.
0 votes
by (800 points)
On a somewhat related note, is there any real difference between FTPConnection and using SecureFTPConnection with FileTransferProtocol=FTP?

I need to provide ftp and sftp services to some msbuild tasks I am writing. would be nice to just use SecureFTpConnection and change the protocol depending on if I want sftp or not rather than having to instantiate FTPConnection or SecureFTPConnection as appropriate and having to cast from one to the other ar various times.....
0 votes
by (51.6k points)
SecureFTPConnection is a subclass of FTPConnection and supports all the functionality of this class. In addition, SecureFTPConnection offers quite a few other features such as directory transfers, asynchronous methods and SOCKS/HTTP proxy support.

So it's perfectly fine for you just to use SecureFTPConnection (with Protocol=FTP). In fact, we've designed the class with this intention in mind.

- Hans (EnterpriseDT)

Categories

...