用c語言寫的 ftp server 服務(wù)器梯码,功能很簡單,主要實現(xiàn)了以下ftp命令 : PASV LIST CWD PWD MKD RMD RETR STOR DELE SIZE ABOR QUIT TYPE NOOP氏身。
每一個連接都開一個線程去處理量窘,默認綁定端口為8021含滴,目前支持匿名登錄痰哨,程序只能運行于 linux 系統(tǒng)胶果,我是在 ubuntu 14.04環(huán)境下編寫的。
源碼地址: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