https://github.com/hectorta1989/multithreading-multiplexing-chat-c
https://github.com/hectorta1989/multithreading-multiplexing-chat-c
c chatapplication multiplexing multithreading socket-programming
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/hectorta1989/multithreading-multiplexing-chat-c
- Owner: HectorTa1989
- Created: 2021-05-11T23:21:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T12:41:44.000Z (over 4 years ago)
- Last Synced: 2025-01-07T06:47:54.677Z (9 months ago)
- Topics: c, chatapplication, multiplexing, multithreading, socket-programming
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
After compiling, there will be two executables: server and client
Run the server by doing:
./server [Port]
or just
./serverThe default port is 9999
Run the client by doing:
./client [Username] [Host] [Port]The client is mostly the same except for the existence of a static
global variable (sorry). The client's socket fd to the server is global
so the client's interrupt handler can send a message to the server telling
it that the client has disconnected.