<div dir="ltr"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-30 17:25 GMT+02:00 Eric Young <span dir="ltr"><<a href="mailto:evilbrave@gmail.com" target="_blank">evilbrave@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I use enet as a tcp-udp bridge to transfer all tcp data via rudp.<div>And I want to show the progress of how many percentage of data has been sent out in enet.(not tcp data). How do I achieve that?</div><div>ex: I send 10MB data via enet, how do I show the progress while enet sends out the enet packet.</div><div>I know that the "enet_packet_send" just queues the packets, not truly sends out the packets. So how could I monitor how many bytes data enet has been sent?</div><div>Or I could use "enet_list_size (& currentPeer -> outgoingReliableCommands)" as a roughly sending percentage if I only have one data to transfer at a time?</div><div><br></div></div></blockquote><div><br></div>A while back i've groked a data sending mechanism. I happens that it can monitor progress. You can check it out here: <a href="https://github.com/lsalzman/enet/pull/17">https://github.com/lsalzman/enet/pull/17</a>.<div> </div><div>Maybe if there is sufficient interest Lee will consider making it part of the official build :).</div><div><br></div></div><div><br></div>-- <br><div class="gmail_signature">Benoit.<br></div>
</div></div>