Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.2 KB

README.md

File metadata and controls

45 lines (38 loc) · 1.2 KB

** File Transfer Protocol**

*for Project of Computer Networking

implementation of file transfer protocol using socket
implemented in python, using multiprocessing to handle multi-user connection

How to run

  • clone this project
  • make sure you have python 3 installed
  • run the server by typing python server.py (by default server will use localhost, port 12009 for data transfer)
  • In a different terminal session, run the client by typing python client.py
  • start to give command to the server (see some commands below)

Main Commands

  • LS
  • DIR
  • QUIT
  • BYE
  • EXIT
  • PWD
  • CD
  • LCD
  • PROM
  • HASH
  • MKDIR
  • MDELETE
  • DELETE
  • RENAME
  • RMDIR
  • GET
  • PUT
  • MGET
  • MPUT

Additional Commands

  • PWD, get current remote directory
  • CDUP, change to parent remote directory
  • CWD , change current remote directory
  • MKD <dir_name>, make a directory in remote server
  • RMD <dir_name>, remove a directory in remote server
  • DELE <file_name>, delete a file in remote server
  • other commands... see list of FTP commands