[ENet-discuss] Limiting bandwidth per ENetPeer

Jay Sprenkle 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:

> 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
> ENet-discuss at cubik.org
> 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."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20120508/6f0f0596/attachment.html>


More information about the ENet-discuss mailing list