[ENet-discuss] client get disconnected after 52 seconds

LoneSock 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:
> Hi,
> 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
> it.
> The server is only receiving the packets and processing them.
> Any ideas?
> I am using the code from the tutorial.
> Thanks for your helps,
> T.
>  ------------------------------
> 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
> http://lists.cubik.org/mailman/listinfo/enet-discuss

Piranha are people too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.puremagic.com/pipermail/enet-discuss/attachments/20051121/46e69d86/attachment.htm

More information about the ENet-discuss mailing list