Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Limiting bandwidth

by steves (Curate)
on Oct 26, 2004 at 00:48 UTC ( #402401=note: print w/replies, xml ) Need Help??

in reply to Limiting bandwidth

Net::FTP supports a BlockSize setting that might have an effect if set very low. But I think that's doubtful.

I think my first try would be to call get with a filehandle as my local file (get supports either a file name or a filehandle). You could then presumably tie the filehandle to a homegrown object that implements a WRITE method that limits bandwidth by going to sleep periodically or something. Completely untried, but that would be fun to give a shot ...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://402401]
[shmem]: LanX: tried strange stuff wrt autocomplete. No luck :(
[erix]: sambuca
[LanX]: machiato!
shmem fills a glas with sambuca, drops 3 beans of coffee into it, lights the stuff and hands it to erix
[Your Mother]: Liquore Strega. :P
[shmem]: s/beans of coffee/enterprise beans/ :-P
[erix]: Take your bottles -- you're all invited! :)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-03-28 12:20 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (330 votes). Check out past polls.