<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Well, something is. I've commented out all uses of enet_peer_send(),
so the two peers are connected but do not send any packets.<br>
<br>
And there's no difference. I still get lots of traffic.<br>
<br>
On 2013-08-20 15:19, Lee Salzman wrote:
<blockquote
cite="mid:CAPk1TVGhjjDMR37FvjWVGoj3YQGUnyLx0cwtfVbecT2F2aVUBw@mail.gmail.com"
type="cite">
<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 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">
<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
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></fieldset>
<br>
<pre>_______________________________________________
ENet-discuss mailing list
<a moz-do-not-send="true" href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a>
<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>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a moz-do-not-send="true"
href="mailto:ENet-discuss@cubik.org">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>
<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>