<div dir="ltr"><div><div><div>For 1 I would increase the timeout, but I have no practical experience with wireless and enet.<br></div>For 2 I think it's better to split yourself. You could then allow some packets to drop and re-request missed parts of the transferred file yourself. This keeps communication more efficient than a single send & retry (if only 1 of the UDP packets of a fragmented packet fails, I assume the entire fragment fails, which will happen too much in wireless).<br><br></div>Cheers,<br></div>Ruud<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 26, 2015 at 11:49 AM, Eric Young <span dir="ltr"><<a href="mailto:evilbrave@gmail.com" target="_blank">evilbrave@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:15.75px">Hi all,</div><div style="font-size:15.75px"><br></div><div style="font-size:15.75px">I use enet in my project to tansfer file in wireless network but I met some problems.</div><div style="font-size:15.75px">1. Wireless is unstable so sometimes enet disconnect unexpectedly.</div><div style="font-size:15.75px">Should I change these settings?  (1) enet_peer_ping_interval or (2) enet_peer_timeout  to avoid this unstable network disconnect ?</div><div style="font-size:15.75px">or this should be normal case so I shouldn't change these timeout configs?</div><div style="font-size:15.75px"><br></div><div style="font-size:15.75px">2. Fragment is enet's feature for big packet?</div><div style="font-size:15.75px">If I have a huge packet and its size is over 100000 B, send huge packet directly (fragment by enet)or I should send many small divided packets(packet size under MTU )orderly if I could split the packet content? </div><div style="font-size:15.75px">IMO, if I can send small divided packets and enet is just responsible for assemble. But if I send huge packet directly, enet would handle packet both fragment and assemble. </div><div style="font-size:15.75px">which one is better performance for enet packet transfering?</div><div style="font-size:15.75px"><br></div><div style="font-size:15.75px">thanks in advence.</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" rel="noreferrer" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br></blockquote></div><br></div>