FTP connection in .Net applications
I've done it myself in VB6, tapping into the WinInet API in order to handle FTP stuff. But I needed something for C#. So I found code written by Peter Beedell on Code Project which solved my problem.
But tonight I found something that, at a first glance, looks even better: edtFTPnet. edtFTPnet is Open Source, licensed under the LGPL, the GNU Lesser General Public License. There's even an edtFTPnet/Pro, which provides SOCKS proxy support and secure FTP over FTPS. These are some of the features, supported by the Open Source version:
- Full source code is provided.
- Passive and active modes are supported (PASV and PORT).
- Resuming of interrupted binary transfers supported.
- Events for monitoring progress of data transfers.
- Under the LGPL, so it can be embedded in commercial applications
- API analogous to command line FTP program.
For my current project, I will continue to use the WinInet implementation provided by Peter Beedell. But next time I will definitely check out edtFTPnet.