Thanks, I didn't know this. It looks like it only supports WinSock, so I *think* I will need an agent on the server to communicate with. If I do this, I can also add compression, which would be nice. Not sure if I want an agent right now....
| [reply] |
Interesting question, and I really want to hear a comprehensive answer.
As of my personal opinion, here is my vision on where to start:
- wget utility from cygwin package has option --limit-rate=RATE which limits download bandwidth. Perform some RTFS if you're familiar with C
- as to current load of modem/eternet-card is a question where it is hard to give a correct answer, because it is hard to distinguish network load from one to another. I mean, say, your 100MBit ethernet card loaded by 5% because of small traffic, but then you connect to 256Kbit Internet, which is overloaded by outside download.
What I would recommand anyway - get information from netstat command with different parameters, and your script to decide what to do with certain statistical results...
- may be just use wget --limit-rate=[rate-specify-here] command from your script?
I would be hapy to see perl answer to the first item.
Courage, the Cowardly Dog. | [reply] [d/l] [select] |