<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Lee and thanks for your response!<br>
<br>
But the ping functions get called (after modifying
ENET_PEER_PING_INTERVAL) every ~30 seconds yet
enet_peer_queue_incoming_command() is called every second or so on
both sides. Wireshark shows packets of 50 and 52 bytes size being
sent back and forth at the same rate.<br>
I'll check what types of commands those are.<br>
<br>
Sincerely,<br>
Stefan<br>
<br>
On 2013-08-20 14:51, Lee Salzman wrote:
<blockquote
cite="mid:CAPk1TVGGM01FF2FBZbE3rYu7LksmGKsJdJ7s4k=U3bVp39_bXQ@mail.gmail.com"
type="cite">
<div dir="ltr">Remember, pings are bidirectional.</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Aug 20, 2013 at 3:30 PM, Stefan
Lundmark <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:stefanlun@hotmail.com" target="_blank">stefanlun@hotmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've been using ENet on Android for a while now and it works
great, thanks!<br>
<br>
However, it wakes up the network device very often (every
~0.5 secs) and thus consumes a lot of battery. I figured
this must be caused by the pings so I changed these to be
sent much more rarely.<br>
I placed a breakpoint in the ping functions and it seems to
work, they're called much less. Unfortunatly the device
still wakes up as often as before, enet_peer_queue_incoming_command()
is called each time so there must be something I'm missing,
maybe some internal protocol stuff I don't understand yet.<br>
<br>
Any tips? I can't figure it out.<br>
<br>
Sincerely,<br>
Stefan Lundmark<br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a moz-do-not-send="true"
href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a><br>
<a moz-do-not-send="true"
href="http://lists.cubik.org/mailman/listinfo/enet-discuss"
target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ENet-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a>
<a class="moz-txt-link-freetext" href="http://lists.cubik.org/mailman/listinfo/enet-discuss">http://lists.cubik.org/mailman/listinfo/enet-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>