用c语言写的 ftp server 服务器,功能很简单,主要实现了以下ftp命令 : PASV LIST CWD PWD MKD RMD RETR STOR DELE SIZE ABOR QUIT TYPE NOOP。
每一个连接都开一个线程去处理,默认绑定端口为8021,目前支持匿名登录,程序只能运行于 linux 系统,我是在 ubuntu 14.04环境下编写的。
源码地址:https://github.com/hookr/Ftp-Server-C-Version
ftp server c version
This is a ftp server program written in c .I modified from this version,using threads instead of processes.original address.
You can run it only on linux.
Compilation and Run
- cd to the ftp server dir
- make
- execute with ./ftp_server
Function introduction
- Please run as root.
- Default binding port is 8021. You can change it to any port such as 21.
- Only supports anonymous users.
- Program directory for the FTP root directory
- Supported ftp commands include:PASV LIST CWD PWD MKD RMD RETR STOR DELE SIZE ABOR QUIT TYPE NOOP
网友评论