Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Gurus*
Posted

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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

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..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...