https://github.com/brentengelbrecht/threaded-socket-server
Threaded socket server
https://github.com/brentengelbrecht/threaded-socket-server
linux socket-io socket-programming socketserver threaded threads weekend-hacking weekend-project
Last synced: 8 months ago
JSON representation
Threaded socket server
- Host: GitHub
- URL: https://github.com/brentengelbrecht/threaded-socket-server
- Owner: brentengelbrecht
- License: mit
- Created: 2022-11-20T20:22:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T14:10:27.000Z (about 3 years ago)
- Last Synced: 2025-04-13T21:19:28.276Z (12 months ago)
- Topics: linux, socket-io, socket-programming, socketserver, threaded, threads, weekend-hacking, weekend-project
- Language: C
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README




# Threaded socket server
Compact server to accept new socket connections and run them in a separate thread.
- Dynamically-sized thread count -> adjust while the app is running
- Add pending connections to a queue while waiting for a service thread
- Timeout sockets that can't be serviced within a specific time
## To build (Linux)
Run this command on command line: `gcc -o server server.c queue.c key_list.c`