[ENet-discuss] Limiting bandwidth per ENetPeer

Soren Dreijer dreijer at echobit.net
Tue May 8 14:29:33 PDT 2012


I'm using enet to communicate with my server. I'd like to throttle certain
ENetPeers based on who they are (i.e. I essentially want to prioritize some
peers over others). I've been looking at using enet_host_bandwidth_limit()
for that, but it looks like that sets the bandwidth limits on the entire
ENetHost rather than individual ENetPeers.

Does anybody know if:

 1. Setting the bandwidth limit to e.g. 5 KB/s on the ENetHost means that
each ENetPeer gets 5 KB/s or if all ENetPeers on that host now share the 5
 2. If there's a way to control individual bandwidth limits per ENetPeer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20120508/0a415f70/attachment.html>

More information about the ENet-discuss mailing list