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.<br><br><div class="gmail_quote">On Thu, Feb 18, 2010 at 10:44 PM, Alexander Shyrokov <span dir="ltr">&lt;<a href="mailto:sj@sjcomp.com">sj@sjcomp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I just started with enet. I made a serer and a client and everything<br>
works as expected. I know that I need to call enet_host_service on both<br>
sides to make sure that the communication works properly. But it so<br>
happens that my client can have large periods of time, when it does not<br>
call enet_host_service, and, therefore, the server then treats the peer<br>
as disconnected. How can I increase the timeout delay to treat the peer<br>
as disconnected?<br>
<br>
Thanks.<br><font color="#888888">
<br>
-- <br>
Regards, Alexander.<br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
</font></blockquote></div><br>