美文网首页
c语言写的 ftp服务器(ftp server)

c语言写的 ftp服务器(ftp server)

作者: devzhaoyou | 来源:发表于2015-11-20 13:53 被阅读2369次

    用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

    1. cd to the ftp server dir
    2. make
    3. execute with ./ftp_server

    Function introduction

    1. Please run as root.
    2. Default binding port is 8021. You can change it to any port such as 21.
    3. Only supports anonymous users.
    4. Program directory for the FTP root directory
    5. Supported ftp commands include:PASV LIST CWD PWD MKD RMD RETR STOR DELE SIZE ABOR QUIT TYPE NOOP

    相关文章

      网友评论

          本文标题:c语言写的 ftp服务器(ftp server)

          本文链接:https://www.haomeiwen.com/subject/khvlhttx.html