From 216e48cd07d96cabd0fd51b965a526350b47b552 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 5 Dec 2010 14:48:39 +0000 Subject: (svn r21399) -Change/Feature/Fix [FS#4284]: perform the compression of savegames to send to the client asynchroniously. This will reduce the lag of the other clients to the time it takes to make the memory dump and it will speed up downloading the map as the download starts earlier (possibly with a slightly lower bandwidth due to slow compression). This should also fix the lag message people get when the savegame compression takes more than a few seconds. --- src/network/core/tcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/core/tcp.h') diff --git a/src/network/core/tcp.h b/src/network/core/tcp.h index 0f6eb8f5d..bdb4253cd 100644 --- a/src/network/core/tcp.h +++ b/src/network/core/tcp.h @@ -35,7 +35,7 @@ public: bool IsConnected() const { return this->sock != INVALID_SOCKET; } virtual NetworkRecvStatus CloseConnection(bool error = true); - void SendPacket(Packet *packet); + virtual void SendPacket(Packet *packet); bool SendPackets(bool closing_down = false); bool IsPacketQueueEmpty(); -- cgit v1.2.3-54-g00ecf