4 int create_server_socket(int port);
6 // A thread that accepts new connections on a given socket,
7 // and hands them off to the server pool.
10 AcceptorThread(int server_sock);
15 // Recovers the this pointer, and hands over control to do_work().
16 static void *do_work_thunk(void *arg);
22 pthread_t worker_thread;
23 volatile bool should_stop;
26 #endif // !defined(_ACCEPTOR_H)