Advertisement

Detect connection speed

Started by September 10, 2000 02:54 AM
0 comments, last by Olek 24 years, 5 months ago
Hello all, I''m wondering if anyone could help me with my problem. I just want to detect: 1. Connection speed of current computer. 2. Connection speeds of clients connected to some server (using WinSock 2). I''m looking forward to your replies, Olek
Olek, olo_b@poczta.onet.pl.
You can calculate a rough and ready bandwidth measurement using the following formula:

bandwidth = kilobits / (time - latency)

So sent an arbitary amount of data to a server, the size of which is kilobits (not bytes).

Measure the time it takes to complete to get time.

You can get latency by pinging a few times, and averaging the return time after discarding high & low values.

Kristian

Edited by - Slide on September 10, 2000 4:51:33 AM
There's probably a simpler, more elegant way of doing it but hell this is London

This topic is closed to new replies.

Advertisement