+class Acceptor : public Thread {
+public:
+ Acceptor(int server_sock, int port);
+
+ // Serialization/deserialization.
+ Acceptor(const AcceptorProto &serialized);
+ AcceptorProto serialize() const;
+
+ void close_socket();
+
+private:
+ virtual void do_work();
+
+ int server_sock, port;
+};