Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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 input

To use the chat, compile all C components using make and run the following command:

```
$ ./s-talk [your port number] [receiver hostname] [receiver port number]
```