Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Send over/print to socket at a specific rate

by Illuminatus (Curate)
on May 05, 2011 at 17:56 UTC ( #903213=note: print w/ replies, xml ) Need Help??


in reply to Re: Send over/print to socket at a specific rate
in thread Send over/print to socket at a specific rate

Actually, if you are on Linux, this is not true. You can set the speed; it's just very painful, and you can't do it in perl (except via system calls). You can use tc to create a rate-shaping class on the interface you are writing to, along with a filter to force the packets of your socket into that class (if your destination has a fixed addr/port it is not that hard). Look here for an overview of how tc works. That said, I agree with Eliya that more definition of why this constraint is necessary to decide if this pain is worth it.

fnord


Comment on Re^2: Send over/print to socket at a specific rate
Replies are listed 'Best First'.
Re^3: Send over/print to socket at a specific rate
by doherty (Novice) on May 05, 2011 at 18:10 UTC
    I wish I were on Linux. Normally I am, but this is Windows. It's for a test setup, so it's not critical. I'll just send the data in chunks with a timer as suggested. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://903213]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (22)
As of 2015-07-29 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls