Reorganize socket classes

This commit is contained in:
2019-06-16 11:42:26 +02:00
parent 9ba225cbde
commit e9509fb117
8 changed files with 32 additions and 33 deletions

View File

@@ -10,12 +10,12 @@ void HttpServer::Execute()
{
try
{
Connection newConnection = listeningSocket.AcceptNextConnection();
connectionOperator.HandleNewConnection(newConnection);
ClientSocket newClient = listeningSocket.AcceptNextConnection();
connectionOperator.HandleNewConnection(newClient);
}
catch (std::runtime_error & e)
{
logger.Info("Connection dropped on accept");
logger.Info("ClientSocket dropped on accept");
}
}
}