diff options
author | eihrul <eihrul> | 2010-05-14 18:20:20 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2010-05-14 18:20:20 +0000 |
commit | c5189c090fc47503790bcb994232629897d61d7c (patch) | |
tree | 487dda62fc80a435388837781e140a4aab78dc6b /include | |
parent | c4138503f9986e9afe032476daf033bd2d95b4d8 (diff) | |
download | enet-c5189c090fc47503790bcb994232629897d61d7c.tar.gz enet-c5189c090fc47503790bcb994232629897d61d7c.zip |
added enet_host_channel_limit
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index 2ffcb3f..04b416e 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -294,6 +294,7 @@ typedef struct _ENetPeer @sa enet_host_service() @sa enet_host_flush() @sa enet_host_broadcast() + @sa enet_host_channel_limit() @sa enet_host_bandwidth_limit() @sa enet_host_bandwidth_throttle() */ @@ -308,6 +309,7 @@ typedef struct _ENetHost int recalculateBandwidthLimits; ENetPeer * peers; /**< array of peers allocated for this host */ size_t peerCount; /**< number of peers allocated for this host */ + size_t channelLimit; /**< maximum number of channels allowed for connected peers */ enet_uint32 serviceTime; ENetList dispatchQueue; int continueSending; @@ -471,6 +473,7 @@ ENET_API int enet_host_check_events (ENetHost *, ENetEvent *); ENET_API int enet_host_service (ENetHost *, ENetEvent *, enet_uint32); ENET_API void enet_host_flush (ENetHost *); ENET_API void enet_host_broadcast (ENetHost *, enet_uint8, ENetPacket *); +ENET_API void enet_host_channel_limit (ENetHost *, size_t); ENET_API void enet_host_bandwidth_limit (ENetHost *, enet_uint32, enet_uint32); extern void enet_host_bandwidth_throttle (ENetHost *); |