Thanks for sending this, you just saved me a bug hunt.  I had copy and pasted 
my code from the client to my lobby server, which is intended to handle 1000's 
of connections, and the peercount was set to 4 lol.  After a little digging it 
appears that peercount maximum is ENET_PROTOCOL_MAXIMUM_PEER_ID = 4095, is 
there any reason this maximum is set?  Can ENET_PROTOCOL_MAXIMUM_PEER_ID safely 
be set to 16,000?

James

----------------------------------------
> From: [email protected]
> To: [email protected]
> Date: Wed, 20 Jun 2012 01:32:29 -0500
> Subject: Re: [ENet-discuss] enet is dropping packets
>
> Oh boy. *facepalm*
>
> I found the problem. After stepping through enet_protocol_handle_connect()
> in the debugger, I noticed that there weren't any peers available in the
> 'peers' array.
>
> And sure enough, I'd called enet_host_create() with a peerCount of 99 (set
> way back in the day when I originally switched to enet). That would explain
> why things went haywire as more users came online.
>
> Thanks to everyone for their suggestions.
>
> / Soren
                                          
_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss

Reply via email to