Add getters (#327)

* Add getters for IXSocketServer class

* Add getters for IXHttpServer class

* Add getters for IXWebSocketServer class
This commit is contained in:
flagarde
2021-11-25 00:28:25 +08:00
committed by GitHub
parent e66437b560
commit 74bb85efe9
6 changed files with 55 additions and 0 deletions

View File

@ -461,4 +461,29 @@ namespace ix
// so wake up the thread responsible for that
_conditionVariableGC.notify_one();
}
int SocketServer::getPort()
{
return _port;
}
std::string SocketServer::getHost()
{
return _host;
}
int SocketServer::getBacklog()
{
return _backlog;
}
std::size_t SocketServer::getMaxConnections()
{
return _maxConnections;
}
int SocketServer::getAddressFamily()
{
return _addressFamily;
}
} // namespace ix