(SocketServer) add ability to bind on an ipv6 address

This commit is contained in:
Benjamin Sergeant
2020-01-26 16:17:26 -08:00
parent fad9f89846
commit 5d4bb90703
10 changed files with 37 additions and 22 deletions

View File

@ -28,7 +28,8 @@ namespace ix
HttpServer(int port = SocketServer::kDefaultPort,
const std::string& host = SocketServer::kDefaultHost,
int backlog = SocketServer::kDefaultTcpBacklog,
size_t maxConnections = SocketServer::kDefaultMaxConnections);
size_t maxConnections = SocketServer::kDefaultMaxConnections,
int addressFamily = SocketServer::kDefaultAddressFamily);
virtual ~HttpServer();
virtual void stop() final;