Hello
I am trying to develop a small program that will periodically (say every 6 hrs) calculate my ISP broadband speed (both up and dn stream) and display on my router GUI's WAN page. I am thinking of say, start a Linux timer, start down/uploading a file of a known size, stop timer and then calculate the U/D speed of the ISP.
Any good suggestions, sample program etc would be of great help. If there are open source programs out there that already does this, a link would be good.
Appreciate any/all the help!
turbozedd, most of these use PHP and / or Java. This is a C++ forum after all. I'm guessing he's trying to make a native application for his router.
EDIT: Thought I'd note that I don't know much about it. You could set up a file on a server that you know can handle your maximum bandwidth, download the file and measure how fast the download goes. I don't know much about socks and I'm still working on these so I can't give much advice.
Or you could use Beej's guide to network programming (which is centered around *nix after all) at http://beej.us/guide/bgnet/ to learn how to use sockets; and then send a SYN packet to a server (I can't remember what the size of these tends to be) and then work out the latency via the time taken to send the packet. Once you've done that you can say "XYZ Kb/sec". You could also measure the time it takes for a data packet to return from the server (ACK(knowledge)). You could work out the down speed from that based on the time to live of the packet.