I noticed that you are calling <font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;">enet_host_service on the host...are you also calling it on the client?<br><br>Jonathan</span></font><br>-- <br>Piranha are people too.
<br><br><br><br><div><span class="gmail_quote">On 1/20/06, <b class="gmail_sendername">Lee Salzman</b> <<a href="mailto:lsalzman1@cox.net">lsalzman1@cox.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It sounds like you're not servicing the host for those 16,000 ms. That's<br>pretty much what would cause that.<br><br>Lee<br><br>Doug Kimzey wrote:<br>> After an eNet client establishes a connection to an eNet Host, the
<br>> client is disconnected after approximately 30 seconds. We have traced<br>> this on the host side to a call to enet_peer_reset in the<br>> enet_protocol_check_timeouts(…) function:<br>><br>><br>><br>
> if (outgoingCommand -> roundTripTimeout >= outgoingCommand -><br>> roundTripTimeoutLimit)<br>><br>> {<br>><br>> event -> type = ENET_EVENT_TYPE_DISCONNECT;<br>><br>
> event -> peer = peer;<br>><br>><br>><br>> enet_peer_reset (peer);<br>><br>><br>><br>> return 1;<br>><br>> }<br>><br>><br>><br>><br>>
<br>> In this case the roundTripTimeout equals the roundTripTimeoutLimit of<br>> 16,000 ms (or 16 seconds).<br>><br>><br>><br>> I have added a call from the client application to enet_peer_ping(…)<br>> that is on a timer to fire every 2 seconds – but the disconnect still
<br>> occurs. The host runs a perpetual loop that calls enet_host_service(…).<br>><br>><br>><br>> Would you have any suggestions or recommendations?<br>><br>><br>><br>> One thing I noticed from the Cube Legends source is that they added a
<br>> PING / PONG message so that whenever a PING message is received on the<br>> server, it immediately does an enet_peer_send of a PONG message back to<br>> the client. Are there other and better ways to handle "keep-alive" packets?
<br>><br>><br>><br>> -Doug<br>><br>><br>><br>><br>><br>> Doug Kimzey<br>><br>> Software Developer<br>><br>> DPRA DEFENSE SYSTEMS GROUP<br>><br>> 10215 Technology Drive, Suite 201
<br>><br>> Knoxville, Tennessee 37932-3344<br>><br>><br>><br>> Phone: 865.218.4237<br>><br>> Cell: 865.382.0307<br>><br>><br>><br>> Email: <a href="mailto:doug.kimzey@dpra.com">
doug.kimzey@dpra.com</a><br>><br>> Home: <a href="mailto:mdkimzey@comcast.net">mdkimzey@comcast.net</a><br>><br>> <a href="http://www.defensesystemsgroup.com">www.defensesystemsgroup.com</a><br>><br>>
<br>><br>><br>> ------------------------------------------------------------------------<br>><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">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br><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">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br></blockquote></div><br>