summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-05 14:48:39 +0000
committerrubidium <rubidium@openttd.org>2010-12-05 14:48:39 +0000
commit216e48cd07d96cabd0fd51b965a526350b47b552 (patch)
treec1b076e6c24953e30171e3a3daf6ab4e6153d3a7 /src/network/core
parent02b3bc57d5cf6336343fd9dda09469221275bb35 (diff)
downloadopenttd-216e48cd07d96cabd0fd51b965a526350b47b552.tar.xz
(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.
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/tcp.h2
1 files changed, 1 insertions, 1 deletions
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();