Bandwidth Control
Bandwidth Control
Is there a way to control bandwith of a file being transfered in purebasic
pentium 90mhz, 32mb ram, 1mb video ram, 1gb hd, windows 95.
If it can run on mine it can run on anything
Staight outta Compton
If it can run on mine it can run on anything
Staight outta Compton
...,
Do you mean transfered using a network or from disk ?
Do you mean transfered using a network or from disk ?
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
-
- Enthusiast
- Posts: 218
- Joined: Sat Apr 26, 2003 4:47 am
- Location: Dullsville..population: me
- Contact:
Dunno if this is any help to you, I use the following procedure instead of SendNetworkData() for sending at a controlled rate.
Just remember to set MaxRate (in bytes/second) somewhere in your code.
Code: Select all
Procedure.l SendNetworkDataLimited(client.l,buffer.l,size.l)
Shared MaxRate.l
time.l=TimeGetTime_()
sentbytes.l=SendNetworkData(client,buffer,size)
time.l=TimeGetTime_()-time
delaytime=((sentbytes*1000)/MaxRate)-time
If delaytime>0
Delay(delaytime)
EndIf
ProcedureReturn sentbytes
EndProcedure
I wanted to control the bandwidth thats outside of the purebasic program.
for instance my brother loves downloading songs and sucking up all the bandwidth. I want to put a program on his computer slow his bandwidth down while im on the internet.
Is this possible
Also wanted to find out if there was a way to block certain websites in purebasic??
for instance my brother loves downloading songs and sucking up all the bandwidth. I want to put a program on his computer slow his bandwidth down while im on the internet.
Is this possible
Also wanted to find out if there was a way to block certain websites in purebasic??
pentium 90mhz, 32mb ram, 1mb video ram, 1gb hd, windows 95.
If it can run on mine it can run on anything
Staight outta Compton
If it can run on mine it can run on anything
Staight outta Compton
proxy doesn't help, use this program on a gateway: bandwith controller, it's not free though
alternative: there are some progs that run on the client and cap the up / down, but... only if your brother runs them on his machine
to write such a beast in purebasic would be quite a challenge i assume...
alternative: there are some progs that run on the client and cap the up / down, but... only if your brother runs them on his machine

to write such a beast in purebasic would be quite a challenge i assume...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
IF you guys are sharing a net connection, and are using a good router/switch, you can limit bandwidth/speed of a MAC address (which is on his ethernet card). Just need to see if your router/switch have that option and get your brother's MAC address.
Of if your router do such a thing as assign addys to computers connected to it, you could try it that way...
Of if your router do such a thing as assign addys to computers connected to it, you could try it that way...
> my brother loves downloading songs and sucking up all the bandwidth.
> I want to put a program on his computer slow his bandwidth down while
> im on the internet.
Which app is he using? Most file-sharing apps have a built-in bandwidth
limiter that you can use... set it to something small instead of the max.
> I want to put a program on his computer slow his bandwidth down while
> im on the internet.
Which app is he using? Most file-sharing apps have a built-in bandwidth
limiter that you can use... set it to something small instead of the max.
you talk about blocking certain web sites. You could mess with his host-file. That file change reference of the network i think. I mean: If hees trying to reach www.google.com and you have an entry in the host file looking like this: http://www.google.com about:blank
a blank page will come up. change the about:blank with http://www.purebasic.com that page will come up. find your host file in the window system32 or system directory somewhere-
a blank page will come up. change the about:blank with http://www.purebasic.com that page will come up. find your host file in the window system32 or system directory somewhere-