(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

@ -42,8 +42,8 @@ namespace
namespace ix
{
HttpServer::HttpServer(int port, const std::string& host, int backlog, size_t maxConnections)
: SocketServer(port, host, backlog, maxConnections)
HttpServer::HttpServer(int port, const std::string& host, int backlog, size_t maxConnections, int addressFamily)
: SocketServer(port, host, backlog, maxConnections, addressFamily)
, _connectedClientsCount(0)
{
setDefaultConnectionCallback();