10 int create_server_socket(int port, SocketType socket_type);
14 // A thread that accepts new connections on a given socket,
15 // and hands them off to the server pool.
16 class Acceptor : public Thread {
18 Acceptor(int server_sock, int port);
20 // Serialization/deserialization.
21 Acceptor(const AcceptorProto &serialized);
22 AcceptorProto serialize() const;
27 virtual void do_work();
29 int server_sock, port;
32 #endif // !defined(_ACCEPTOR_H)