Skip to content

brentengelbrecht/threaded-socket-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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