TCPListener

Richie

Member
Joined
Feb 20, 2003
Messages
16
Location
Pittsburgh, PA
Can TCPListener be used to programattically connect to an ftp site? a_jam_sandwich gave me some great code that connects to an http site, but since the .NET framework is made to only support http, https, and file: Im still working on figuring out what to do about ftp.

Thanks
 
If youre making your own component, use the TcpClient or Socket classes. I wrote my own ftp component using the Socket class. You can get around having to listen on a port by using passive mode for file transfers.

Youll have to do a lot of reading up the Socket class and the FTP RFC (#959 if memory serves). Failing that, find a ready-made FTP component for .NET, there are plenty out there.
 
do you know of any in particular?

everything ive seen so far has a free trial, but costs money after that. I cant use something in production at work if it isnt truly free..
 
Back
Top