added maximumPacketSize and maximumWaitingData fields for limiting peer buffer space

This commit is contained in:
Lee Salzman
2014-04-14 19:11:44 +03:00
parent 73c930881f
commit ea8d41f65c
6 changed files with 37 additions and 15 deletions
+2
View File
@@ -100,6 +100,8 @@ enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelL
host -> connectedPeers = 0;
host -> bandwidthLimitedPeers = 0;
host -> duplicatePeers = ENET_PROTOCOL_MAXIMUM_PEER_ID;
host -> maximumPacketSize = ENET_HOST_DEFAULT_MAXIMUM_PACKET_SIZE;
host -> maximumWaitingData = ENET_HOST_DEFAULT_MAXIMUM_WAITING_DATA;
host -> compressor.context = NULL;
host -> compressor.compress = NULL;