From 2acad02476b4cbcd23b810758b2fb8e411e1d75b Mon Sep 17 00:00:00 2001 From: nordsoft Date: Sun, 15 Jan 2023 01:02:41 +0400 Subject: [PATCH] Fix compilation --- lib/serializer/Connection.cpp | 10 ---------- server/CVCMIServer.cpp | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/serializer/Connection.cpp b/lib/serializer/Connection.cpp index 25450b7a0..4cd5cbd39 100644 --- a/lib/serializer/Connection.cpp +++ b/lib/serializer/Connection.cpp @@ -28,12 +28,6 @@ VCMI_LIB_NAMESPACE_BEGIN #define LIL_ENDIAN #endif -struct ConnectionBuffers -{ - boost::asio::streambuf readBuffer; - boost::asio::streambuf writeBuffer; -}; - void CConnection::init() { enableSmartPointerSerialization(); @@ -163,7 +157,6 @@ void CConnection::reportState(vstd::CLoggerBase * out) CPack * CConnection::retrievePack() { - enableBufferedRead = true; CPack * pack = nullptr; iser & pack; @@ -177,7 +170,6 @@ CPack * CConnection::retrievePack() pack->c = this->shared_from_this(); } - enableBufferedRead = false; return pack; } @@ -186,11 +178,9 @@ void CConnection::sendPack(const CPack * pack) { logNetwork->trace("Sending a pack of type %s", typeid(*pack).name()); - enableBufferedWrite = true; oser & pack; - flushBuffers(); } void CConnection::disableStackSendingByID() diff --git a/server/CVCMIServer.cpp b/server/CVCMIServer.cpp index 3f8df7b40..9b26460f9 100644 --- a/server/CVCMIServer.cpp +++ b/server/CVCMIServer.cpp @@ -172,7 +172,7 @@ void CVCMIServer::run() #endif if(!lobbyConnectionsThread) - lobbyConnectionsThread = vstd::make_unique(&CVCMIServer::startAsyncAccept, this); + lobbyConnectionsThread = std::make_unique(&CVCMIServer::startAsyncAccept, this); /*if(!remoteConnectionsThread && cmdLineOptions.count("lobby")) {