The repository contains 2 folders:
- File Programs : Contains programs that save and retrieve data from files.
- Server Programs : Contains programs that use sockets to communicate between client and server. {to be updated}
- Clone the repository.
- Run the .cpp file
- The program will run on the terminal. You will be prompted to enter the required data.
- A .txt file will be created in the File Programs folder which will contain the data entered by the user.
- Run the server.cpp file on a separate terminal
- Run the client.cpp file on a separate terminal
- The client will be prompted to enter the required data.
- A .txt file will be created and it will contain the information sent by the client.
- The server program does not always terminate on its own. You will have to manually terminate it using the following commands: In this program, the port number is hard coded into the code and it is 3000.
sudo lsof -i :<port_number>
sudo kill <PID>
Cliff Ezra, Austin Ongwae, Teddy Mwai, Elijah Ajak, Thon Peter