Basic self-made C-based ftp server.
This is a course project of Internet Applications (BUPT 2021). The project is focusing on finishing
the requirement, so only several core functions are covered.
- Limited user login (currently 2 users writern in code)
- File system command such as cd, cdup, pwd, mkdir, dele, rename....
- Upload and download in active or passive mode
- Ascii mode and binary mode transmission
- Display user's username, IP, actions, speed, total traffic...
- Limit download speed and upload speed
- Admin user can upload, mkdir, dele, rename while common users cannot
This project is based on linux socket programming. There is no need to install any moudule before
running, just compile and run by using following code:
gcc -o ftp_server ftp_server.c
sudo ./ftp_server <speed_limit>
Speed limit can be any positive integer that will limit both upload and download speed to speed_limit kb/s.
Of course! I have always believed that free sharing is the purpose of the Internet.
Any relative commit are welcomed, you can always submit a pull request! The project
has a lot to improve. We also welcome BUPT student refer our project to finish your own coursework.
Feel free to add any new function and modify existing functions. Adding new commands maybe is a good start.