creating an ftp server

2019-07-20 06:40发布

I am trying to create a ftp server in c#. This server should listen to any ftp requests, and if a file is sent from a remote location, then the server should write it to a specific folder. I am using VS2008. Do I need a tcp listener? FtpWebRequest? FtpWebResponse?

标签: c# .net ftp
3条回答
Fickle 薄情
2楼-- · 2019-07-20 07:15

I believe a TcpListener would be easiest to work with

There's an old article on it here that should still be usefull: codeguru

查看更多
冷血范
4楼-- · 2019-07-20 07:30

Don't know if writing your own FTP server is the way to go here.

Wouldn't it be easier to install a pre-rolled FTP server, and have a job that polls your FTP upload directory? This job will identify incoming files and then places them where you need based on a set of predefined rules.

查看更多
登录 后发表回答