2015-06-30 17:25 GMT+02:00 Eric Young <[email protected]>: > 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? > > A while back i've groked a data sending mechanism. I happens that it can monitor progress. You can check it out here: https://github.com/lsalzman/enet/pull/17.
Maybe if there is sufficient interest Lee will consider making it part of the official build :). -- Benoit.
_______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
