Skip to content

A FTP server that allows user to upload and donwload file from the server.

Notifications You must be signed in to change notification settings

vKongv/ftp-server-using-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ftp-server-using-c

BEFORE RUN THE PROGRAM

  • Download all the files (6 files) in this respository (tcpserver.c, tcpclient.c, inet.h, queue.h, qoperate.h, retrieveip.c)
  • Put all the files in the same directory
  • Edit the retrieveip.c line no. 11 if you are using different connection (Default is eth0), Use ifconfig to check.
  • Compile all the C files using gcc filename -o outfilename (Please use the same file name for the output file)
  • FINAL CHECKLIST: You should have the 3 executable files (tcpserver, tcpclient, retrieveip)

#RUN THE PROGRAM

  • Run the server first (./tcpserver)
  • Then run the client in another terminal (./tcpclient ipaddressOfServer)
  • Perform the task you wanted.

#FEATURES

  • Able to download and upload file
  • Concurrent servers (Handle multiple clients at one time)
  • Display connected client to the server terminal (When new client connect to the server)
  • Dynamically retrieve server IP address (Must configure to the correct interface in the C file before compilation)
  • Handle CRTL-C from client (Disconnect it from server)

#LIMITATION

  • ONLY can run in LINUX OS (Mac OS will need to edit the download path)
  • CANNOT delete file(s)

About

A FTP server that allows user to upload and donwload file from the server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages