brentengelbrecht / threaded-socket-server

Threaded socket server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub repo size GitHub contributors GitHub stars GitHub forks

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

About

Threaded socket server

License:MIT License


Languages

Language:C 100.0%