[ENet-discuss] Increase timeout delay

Benoit Germain bgermain at ubisoft.fr
Fri Feb 19 00:20:16 PST 2010


Another case where one might want to increse disconnection timeouts is when one is tracing code in the debugger : just because one of the session members is delayed doesn't mean we want it to be disconnected. And no amount of multithreading will solve this :)

De : enet-discuss-bounces at cubik.org [mailto:enet-discuss-bounces at cubik.org] De la part de Nuno Silva
Envoyé : vendredi 19 février 2010 00:26
À : Discussion of the ENet library
Objet : Re: [ENet-discuss] Increase timeout delay

You could do the network side on a separate thread. That way even if your client blocks for a long time the network will still be alive.
On Thu, Feb 18, 2010 at 10:44 PM, Alexander Shyrokov <sj at sjcomp.com<mailto:sj at sjcomp.com>> wrote:
Hello,

I just started with enet. I made a serer and a client and everything
works as expected. I know that I need to call enet_host_service on both
sides to make sure that the communication works properly. But it so
happens that my client can have large periods of time, when it does not
call enet_host_service, and, therefore, the server then treats the peer
as disconnected. How can I increase the timeout delay to treat the peer
as disconnected?

Thanks.

--
Regards, Alexander.
_______________________________________________
ENet-discuss mailing list
ENet-discuss at cubik.org<mailto:ENet-discuss at cubik.org>
http://lists.cubik.org/mailman/listinfo/enet-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20100219/1a1f920a/attachment.htm>


More information about the ENet-discuss mailing list