6 int create_server_socket(int port);
10 // A thread that accepts new connections on a given socket,
11 // and hands them off to the server pool.
12 class Acceptor : public Thread {
14 Acceptor(int server_sock, int port);
16 // Serialization/deserialization.
17 Acceptor(const AcceptorProto &serialized);
18 AcceptorProto serialize() const;
23 virtual void do_work();
25 int server_sock, port;
28 #endif // !defined(_ACCEPTOR_H)