A very simple TCP Client and Server where the server serves the file requested for or returns "File not found". Currently, chunking is not implemented and the entire file is sent at once. Also, the client exits after making one request.
- C
- Transfer files over TCP/IP
Over the course of this project, I learnt:
- the lifecycle of
recv(),send()and howsend()does not promise to transfer all the bytes passed to it - the system calls -
open()andread()
- Clone the repository (make sure you are on a Linux machine)
- Run
make server - Run
make client - Run both the executables on different instances of a terminal
