[ENet-discuss] client get disconnected after 52 seconds
lonesock at gmail.com
Mon Nov 21 23:00:18 PST 2005
By any chance are you only sending packets with "enet_host_flush"? I believe
that if you use only that function and never use "enet_host_service", then
your client will not respond to the automatic keep-alive packets. Try using
enet_host_service in your client's main loop (at least every few seconds).
On 11/21/05, tom m <email_4_forums at yahoo.com> wrote:
> I first want to thank you for this library.
> I have a client/server architecture.
> When I create a client peer which is only sending packets to the server,
> it gets disconnected after approximately 52 seconds.
> Therefore, my Server (peer) receives an ENET_EVENT_TYPE_DISCONNECT after
> 52 sec.
> So the application is working fine for 52 sec and then I have to restart
> The server is only receiving the packets and processing them.
> Any ideas?
> I am using the code from the tutorial.
> Thanks for your helps,
> Yahoo! FareChase - Search multiple travel sites in one click.<http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/>
> ENet-discuss mailing list
> ENet-discuss at cubik.org
Piranha are people too.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ENet-discuss