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. See also the discussion on ENET_PEER_TIMEOUT_MINIMUM and ENET_PEER_TIMEOUT_MAXIMUM that went on just these last few days. Just pinging a bit should be ok (sending out a packet that does nothing).
Ruud On Tue, May 1, 2012 at 11:48 AM, Nuno Silva <[email protected]>wrote: > Hello, > 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? > > _______________________________________________ > ENet-discuss mailing list > [email protected] > http://lists.cubik.org/mailman/listinfo/enet-discuss > >
_______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
