I was interested in the same thing. It makes a good way to throttle people who are trying to hack your service.<div>My research indicated the bandwidth limit is a total bandwidth limit not a limit per connection.</div><div>
I could be wrong though. If you figure out a good way to do this please let me know :)</div><div><br><br><div class="gmail_quote">On Tue, May 8, 2012 at 4:29 PM, Soren Dreijer <span dir="ltr"><<a href="mailto:dreijer@echobit.net" target="_blank">dreijer@echobit.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>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.<br>
<br>Does anybody know if:<br><br> 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<br> 2. If there's a way to control individual bandwidth limits per ENetPeer<br>
<br>Cheers,<br>Soren<br>
<br>_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>---<br>"There's a zombie outbreak! Oh, no, wait a second... It's just a bunch of kids texting."<br>
</div>