(svn r21398) -Change/Feature-ish: when making a savegame to send to a client, don't write it to disk but create the packets immediately

This commit is contained in:
rubidium
2010-12-05 14:45:52 +00:00
parent 948cffc930
commit 02b3bc57d5
2 changed files with 96 additions and 37 deletions

View File

@@ -72,6 +72,9 @@ public:
CommandQueue outgoing_queue; ///< The command-queue awaiting delivery
int receive_limit; ///< Amount of bytes that we can receive at this moment
Packet *savegame_packets; ///< Packet queue of the savegame; send these "slowly" to the client.
struct PacketWriter *savegame; ///< Writer used to write the savegame.
ServerNetworkGameSocketHandler(SOCKET s);
~ServerNetworkGameSocketHandler();