I'm pretty sure the peer id limit in this version of enet is due to the
reduced number of bits available in the header for peer ids...

But it's been a while since I looked.

Len
http://www.serverframework.com

> -----Original Message-----
> From: [email protected] [mailto:enet-discuss-
> [email protected]] On Behalf Of James B
> Sent: 20 June 2012 2:52 PM
> To: [email protected]
> Subject: Re: [ENet-discuss] enet is dropping packets
> 
> 
> 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

_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss

Reply via email to