Setting Upload/Download Speeds

  • Thread starter Thread starter Serdar C.
  • Start date Start date
S

Serdar C.

i am trying to write a program to control upload and download speeds over
specific ports like i have 128kbit download and 64kbit upload speed total..
i want to let port xxxx to use maximum amount of 32kbit upload speed at
all.. i saw programs doin that (i.e overnet) how can i do that i dont know
where to look for this program never found something about this at msdn..?
anyone knows?
 
Sedar,

This seems "hackish" to me but off the top of my head...
you could use a System.Timer and slow your reads/writes to
the ports according to the speed you want or if the
transfer happens on different threads sleep the thread for
some small interval. Once you had the intervals down for
the speeds you wanted you could define constants for your
delay values....

If I think of something more elegant I'll be sure to post
it.

JM
 
Back
Top