[ENet-discuss] Limiting bandwidth per ENetPeer
jsprenkle at gmail.com
Tue May 8 14:39:21 PDT 2012
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 <dreijer at echobit.net> wrote:
> 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
> ENet-discuss mailing list
> ENet-discuss at cubik.org
"There's a zombie outbreak! Oh, no, wait a second... It's just a bunch of
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ENet-discuss