<div dir="ltr"><div>So, I peeked at the code and it looks like it's just a matter of updating the position of the bit flags in ENetProtocolFlag and making sure the rest of the code uses the proper constants (such as ENET_PROTOCOL_HEADER_SESSION_SHIFT, ENET_PROTOCOL_HEADER_FLAG_MASK and ENET_PROTOCOL_HEADER_SESSION_MASK). <br>
<br>At a quick glance, it looks like you've done a good job of always using them, so it shouldn't be too difficult to just shift them up a bit and using a larger field for the peerID field.<br><br></div>/ Soren<br>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 2, 2014 at 3:43 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">Hey Lee,<br>
<br>
Thanks for the quick reply. So, what do I need to do to raise the limit? I really would like to be able to handle more users than just 0xFFF since my server has plenty of CPU and bandwidth left.<br>
<div class="HOEnZb"><div class="h5"><br>
> On Aug 2, 2014, at 11:45 AM, Lee Salzman <<a href="mailto:lsalzman@gmail.com">lsalzman@gmail.com</a>> wrote:<br>
><br>
> Those bits are used for storing flags. You can't just use them like that.<br>
><br>
>> On 08/02/2014 09:09 PM, Soren Dreijer wrote:<br>
>> Hi fellas,<br>
>><br>
>> I've once again hit the upper limit for peers on my Enet server, which is hardcoded to 0xFFF. I dug up some old posts that suggested this value cannot be changed.<br>
>><br>
>> Is this still true in the latest version of Enet? As far as I can tell, ENetProtocolHeader uses a 16-bit value for the peer ID, which means ENET_PROTOCOL_MAXIMUM_PEER_ID could be set to 0xFFFF.<br>
>><br>
>> Are there other reasons why the maximum limit is set to 0xFFF that I should be aware of?<br>
>><br>
>> Thanks,<br>
>> Soren<br>
>><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>
> _______________________________________________<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>
</div></div></blockquote></div><br></div>