Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Limit Socket (throttle) to send specific ammount of packets every second

by Lucas Rey (Sexton)
on Sep 22, 2016 at 07:21 UTC ( [id://1172346]=note: print w/replies, xml ) Need Help??


in reply to Re: Limit Socket (throttle) to send specific ammount of packets every second
in thread Limit Socket (throttle) to send specific ammount of packets every second

Thank you, reading the page you link me, seem the Algorithm::TokenBucket is what I need. Unfortunately this is my first application in Perl, so I'm not able to add module, and adding use Algorithm::TokenBucket; Will result in: Can't locate Algorithm/TokenBucket.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./test.sh line 4. Could you please help me? Thank you, Lucas

Replies are listed 'Best First'.
Re^3: Limit Socket (throttle) to send specific ammount of packets every second
by Discipulus (Canon) on Sep 22, 2016 at 07:26 UTC
    installing Perl modules is normally as easy as cpan Module::Name but see specific tutorials here at PM

    L*

    PS as side note: perl 5.8.8 is the version used by my grand grand mother.. if you are new to Perl jump directly to 5.22 or more. ModernPerl is very good book and is free!

    If perl 5.8.8 is your system Perl read RFC: (Do Not) Modify the System Perl first; some monks here around use Perlbrew to deal with multiple Perl installation.

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re^3: Limit Socket (throttle) to send specific ammount of packets every second
by davido (Cardinal) on Sep 22, 2016 at 15:07 UTC

    Because you didn't use formatting, your original follow-up post here looks like this to most of us:

    Thank you, reading the page you link me, seem the Algorithm::TokenBucket is what I need. Unfortunately this is my first application in Perl, so I'm not able to add module, and adding use Algorithm::TokenBucket; Will result in: Can't locate Algorithm/TokenBucket.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./test.sh line 4. Could you please help me? Thank you, Lucas

    If you add formatting using advice from Writeup Formatting Tips, like this:

    <p> Thank you, reading the page you link me, seem the [mod://Algorithm::To +kenBucket] is what I need. Unfortunately this is my first application + in Perl, so I'm not able to add module, and adding <code>use Algorit +hm::TokenBucket;</code> Will result in: </p> <code> Can't locate Algorithm/TokenBucket.pm in @INC (@INC contains: /usr/lib +64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/sit +e_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5. +8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/l +ib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi + /usr/lib/perl5/5.8.8 .) at ./test.sh line 4. </code> <p>Could you please help me?</p> <p>Thank you,<br />Lucas</p>

    ...then the rendering in peoples' browsers will look more like this:

    Thank you, reading the page you link me, seem the Algorithm::TokenBucket is what I need. Unfortunately this is my first application in Perl, so I'm not able to add module, and adding use Algorithm::TokenBucket; Will result in:

    Can't locate Algorithm/TokenBucket.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./test.sh line 4.

    Could you please help me?

    Thank you,
    Lucas

    Better, right? Making the post legible encourages people to read it, which improves the odds of getting an answer. Legibility also promotes goodwill here, which improves the odds of getting a thoughtful answer. Writeup Formatting Tips


    Dave

      Thank you, I'll keep in mind your advice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-05-23 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found