TCPListener

Richie

Newcomer
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: I'm still working on figuring out what to do about ftp.

Thanks
 
If you're 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.

You'll 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 can't use something in production at work if it isn't truly free..
 
Back
Top