<div dir="ltr"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">I got it!</span><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
The timeouts work as expected. </div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">The problem is that I was giving the enet_host_service() timeout of 60 seconds and since there was no traffic to “wake-up” select() the expired packets are checked after the 60 seconds timeout expires.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 25, 2013 at 11:53 AM, Ruud van Gaal <span dir="ltr"><<a href="mailto:ruud@racer.nl" target="_blank">ruud@racer.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>You might want to check enet.h for ENET_PEER_TIMEOUT_MINIMUM and ENET_PEER_TIMEOUT_MAXIMUM.<br></div>However, I also believed that the peer timeout could be set with a function call the last couple of versions...<br>

<br></div>Ruud<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Thu, Oct 24, 2013 at 11:09 PM, Krasimir Marinov <span dir="ltr"><<a href="mailto:krasi@jklsemi.com" target="_blank">krasi@jklsemi.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="word-wrap:break-word"><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px">

Hi,</div><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px"><br></div><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px">

First thanks for the nice library!</div><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px"><br></div><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px">

I’ve a question related to tweaking the timeout on connect.</div><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px"><br></div><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px">

I'd like the connection attempt to timeout, i.e. get DISCONNECT event, asap in the case of the "server" is missing, i.e. the peer host is not available.</div><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px">

<br></div><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px">I've played with enet_peer_timeout(), setting different values on the peer returned from enet_host_connect() call, but this is w/o any effect - I get the DISCONNECT event after 60 seconds, no matter what values I pass to enet_peer_timeout().</div>

<div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px"><br></div><div style="font-family:Consolas,'Lucida Console',monospace;padding-left:7px;word-wrap:break-word;font-size:13px">

Do I miss something? Is this the correct way to tweak the connect timeout?</div></div><br></div></div>_______________________________________________<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>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">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>
<br></blockquote></div><br></div>