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