Network Chat Program
This is a straightforward network messaging application developed in C++ utilizing socket programming. It consists of a server and several clients that are able to chat in real time.
Having obtained the Server.cpp
and Client.cpp
files, you need to generate both the server and client programs by using the following commands:
g++ Server.cpp -o server -pthread
g++ Client.cpp -o client -pthread
fter compiling the programs, the next step is to run them as follows:
- Run the server: Open one terminal and type in the prompt below to launch the server:
./server
- Run the client: Open another terminal and execute the following command to start the client:
./client