C++ Linux Sockets

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
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.
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.