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.
- Host: GitHub
- URL: https://github.com/codophobia/single-server-client-chat
- Owner: codophobia
- Created: 2016-10-08T13:28:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-06T10:57:49.000Z (almost 7 years ago)
- Last Synced: 2025-01-20T00:16:44.213Z (12 months ago)
- Language: C
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.