I was interested in the same thing. It makes a good way to throttle people who are trying to hack your service. My research indicated the bandwidth limit is a total bandwidth limit not a limit per connection. I could be wrong though. If you figure out a good way to do this please let me know :)
On Tue, May 8, 2012 at 4:29 PM, Soren Dreijer <[email protected]> wrote: > Hi, > > 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 > KB/s > 2. If there's a way to control individual bandwidth limits per ENetPeer > > Cheers, > Soren > > _______________________________________________ > ENet-discuss mailing list > [email protected] > http://lists.cubik.org/mailman/listinfo/enet-discuss > > -- --- "There's a zombie outbreak! Oh, no, wait a second... It's just a bunch of kids texting."
_______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
