[ENet-discuss] Reducing traffic from ENet internally on mobile devices

Lee Salzman lsalzman at gmail.com
Tue Aug 20 06:19:11 PDT 2013


Ping doesn't go through enet_peer_queue_incoming_command, only user data.
That means you are sending data, not ENet.


On Tue, Aug 20, 2013 at 3:52 PM, Stefan Lundmark <stefanlun at hotmail.com>wrote:

>  Hi Lee and thanks for your response!
>
> 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.
> I'll check what types of commands those are.
>
> Sincerely,
> Stefan
>
>
> On 2013-08-20 14:51, Lee Salzman wrote:
>
> Remember, pings are bidirectional.
>
>
> On Tue, Aug 20, 2013 at 3:30 PM, Stefan Lundmark <stefanlun at hotmail.com>wrote:
>
>> Hi,
>>
>> I've been using ENet on Android for a while now and it works great,
>> thanks!
>>
>> 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.
>> 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.
>>
>> Any tips? I can't figure it out.
>>
>> Sincerely,
>> Stefan Lundmark
>> _______________________________________________
>> ENet-discuss mailing list
>> ENet-discuss at cubik.org
>> http://lists.cubik.org/mailman/listinfo/enet-discuss
>>
>
>
>
> _______________________________________________
> ENet-discuss mailing listENet-discuss at cubik.orghttp://lists.cubik.org/mailman/listinfo/enet-discuss
>
>
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20130820/7f2a0f24/attachment.html>


More information about the ENet-discuss mailing list