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.