- Clone the repo and change directory
git clone https://github.com/anand-2020/ftp.git
cd ftp
-
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
-
Compile the
server.cppandclient.cppfiles
g++ server.cpp -o server -lpthread
g++ client.cpp -o client -lpthread
- Run the server
./server <port_no>
- Run the client
./client <host_name> <port_no>
- Client side
| 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 |