C++ Linux Sockets

Sep 11, 2013 at 9:34am
Hello Everyone,

I want to measure socket transfer rate from my C++ code.
I't possible to do ?
And how to do that ?

Regards Mrjojan
Sep 12, 2013 at 6:03pm
closed account (Dy7SLyTq)
what library are you using? if it doesnt have a built in function i would write a timer and transfer for like 10 seconds. then divide the number of packets sent by 10 and the number recieved by 10. youll get the average speed per second. there is probably a more elegant solution but i cant think of one.
Sep 13, 2013 at 2:37pm
Thanks for your Reply,

I`m using POSIX library,
My C++ server connects to Android socket, i want to measure transfer rate when i`m sending and receiving some information to get internet speed of Android device.
Topic archived. No new replies allowed.