(svn r21363) -Add: support for limiting the amount of (accepted) incoming data

This commit is contained in:
rubidium
2010-11-30 20:01:26 +00:00
parent a0f0f5e2e1
commit fd752ca2b0
5 changed files with 26 additions and 1 deletions

View File

@@ -70,10 +70,12 @@ public:
uint32 last_token_frame; ///< The last frame we received the right token
ClientStatus status; ///< Status of this client
CommandQueue outgoing_queue; ///< The command-queue awaiting delivery
int receive_limit; ///< Amount of bytes that we can receive at this moment
ServerNetworkGameSocketHandler(SOCKET s);
~ServerNetworkGameSocketHandler();
virtual Packet *ReceivePacket();
NetworkRecvStatus CloseConnection(NetworkRecvStatus status);
void GetClientName(char *client_name, size_t size) const;