An open API service indexing awesome lists of open source software.

https://github.com/codophobia/single-server-client-chat

A server and client program based on TCP protocol which helps in two way chat.
https://github.com/codophobia/single-server-client-chat

Last synced: 14 days ago
JSON representation

A server and client program based on TCP protocol which helps in two way chat.

Awesome Lists containing this project

README

          

# Single-Server-Client-Chat
A server and client program based on TCP protocol which helps in two way chat.

Compiling the code:
gcc filename.c -pthread

Running the server:
./a.out portnumber

Running the client:
./a.out portnumber

Remember, first run the server with a port number of your choice. The server runs on the localhost(127.0.0.1). You can change it by changing the server socket address.
Then run the client program by using the same port number given to the server.

Stopping the chat:
Both client and server need to say bye to each other to stop the chat and this ends both the programs.