Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aarhamh/multithread-chat-cli
Command line chatting interface using pthreads and sockets.
https://github.com/aarhamh/multithread-chat-cli
c pthreads sockets udp
Last synced: 3 days ago
JSON representation
Command line chatting interface using pthreads and sockets.
- Host: GitHub
- URL: https://github.com/aarhamh/multithread-chat-cli
- Owner: AarhamH
- License: mit
- Created: 2023-10-05T22:58:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-27T07:23:19.000Z (about 1 year ago)
- Last Synced: 2024-02-27T00:29:21.103Z (9 months ago)
- Topics: c, pthreads, sockets, udp
- Language: C
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# multithread-chat-cli
A command line chat interface, which allows two machines to communicate on the terminal.This program contains 4 threads:
1. Transmit: Intiializes bytes based on input and sends it over a UDP connection
2. Write: Outputs (writes) the earliest message.
3. Receiver: Recovers bytes and binds socket.
4. Read: Declares bytes through keyboard inputTo use the chat, compile all C components using make and run the following command:
```
$ ./s-talk [your port number] [receiver hostname] [receiver port number]
```