Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

File Transfer Protocol implementation

Setup and use locally

  1. Clone the repo and change directory
git clone https://github.com/anand-2020/ftp.git
cd ftp
  1. Create a folder named FTP_SERVER in the directory containing the server.cpp file and create a file named auth.txt in the FTP_SERVER folder

  2. Compile the server.cpp and client.cpp files

g++ server.cpp -o server -lpthread
g++ client.cpp -o client -lpthread
  1. Run the server
./server <port_no>
  1. Run the client
./client <host_name> <port_no> 

Commands

  1. Client side

Command

Use

GET %filename% download file having name %filename% from server
GET %filename% -b download file in binary mode
PUT %filename% upload file having name %filename% to server
PUT %filename% -b upload file in binary mode
close end connection with server

About

File Transfer Protocol (FTP) implementation in C++

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages