[ENet-discuss] enet packet send "progress" question

Eric Young evilbrave at gmail.com
Tue Jun 30 08:25:53 PDT 2015


I use enet as a tcp-udp bridge to transfer all tcp data via rudp.
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?
ex: I send 10MB data via enet, how do I show the progress while enet sends
out the enet packet.
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?
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?

thanks a lot. : )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20150630/ab6266df/attachment.html>


More information about the ENet-discuss mailing list