<div dir="ltr">Ping doesn't go through enet_peer_queue_incoming_command, only user data. That means you are sending data, not ENet.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 20, 2013 at 3:52 PM, Stefan Lundmark <span dir="ltr"><<a 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">
<div 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<div><div class="h5"><br>
<br>
On 2013-08-20 14:51, Lee Salzman wrote:
<blockquote 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 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 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>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
ENet-discuss mailing list
<a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a>
</pre>
</blockquote>
<br>
</div></div></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>