By default, Enet sends (reliable) ping packets every 500ms, if no other reliable traffic was sent in that interval. If you&#39;re sending reliable packets 30 times per second instead of 2 times, it&#39;s possible Enet is deriving a more accurate average round trip time.<div>
<br></div><div>- Blair<br><br><div class="gmail_quote">On Wed, Jul 14, 2010 at 2:45 PM, Philip Bennefall <span dir="ltr">&lt;<a href="mailto:philip@u7142039.fsdata.se">philip@u7142039.fsdata.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Hi Lee and others,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I am having some minor issues with 
ENet.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">First, I&#39;m trying to get the average up and 
downstream for each peer by using the appropriate data fields in the 
peer structure but it always returns 0 for some reason. The same seems to be 
true with the host structure as well.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Second, when I look at the average round trip time 
for a peer, this value is only correct if I send out a few reliable packets. on 
localhost, for instance, I ran a test where I sent 30 unreliable packets every 
second. I poll the network every 5 milliseconds, but got an average round trip 
of 44 milliseconds. When I changed it to reliable packets, however, I got an 
average of 12 which seems much more reasonable. Is this intended 
behavior?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks in advance for any help.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Kind regards,</font></div>
<div><font face="Arial" size="2"></font> </div><font color="#888888">
<div><font face="Arial" size="2">Philip Bennefall</font></div></font></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>