I think ENet will send some adminstrative packets now & then, but if you never call enet_host_service() every second or so, you're bound to get drops indeed.<br>See also the discussion on ENET_PEER_TIMEOUT_MINIMUM and ENET_PEER_TIMEOUT_MAXIMUM that went on just these last few days.<br>
Just pinging a bit should be ok (sending out a packet that does nothing).<br><br>Ruud<br><br><div class="gmail_quote">On Tue, May 1, 2012 at 11:48 AM, Nuno Silva <span dir="ltr"><<a href="mailto:little.coding.fox@gmail.com" target="_blank">little.coding.fox@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>I was working on a game and had multiplayer working (I only use Reliable packets, but they're not sent very often), however on several PCs the game would just drop the connection randomly. Is there any particular reason for this to happen? I'm wondering if it has anything to do with each player idling as they think of a move. Should I ping each other to keep the connection alive?<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" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br></blockquote></div><br>