4 #include <netinet/in.h>
12 int create_server_socket(const sockaddr_in6 &addr, SocketType socket_type);
16 sockaddr_in6 create_any_address(int port);
17 sockaddr_in6 extract_address_from_acceptor_proto(const AcceptorProto &proto);
19 // A thread that accepts new connections on a given socket,
20 // and hands them off to the server pool.
21 class Acceptor : public Thread {
23 Acceptor(int server_sock, const sockaddr_in6 &addr);
25 // Serialization/deserialization.
26 Acceptor(const AcceptorProto &serialized);
27 AcceptorProto serialize() const;
32 virtual void do_work();
38 #endif // !defined(_ACCEPTOR_H)