Benjamin Holzman > Net-Shaper-0.3 > Net::Shaper

Download:
Net-Shaper-0.3.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.3   Source  

NAME ^

Net::Shaper - Simple TCP Traffic Shaper

SYNOPSIS ^

  use Net::Shaper;

  my $shaper = Net::Shaper->new( LocalPort => 8000,
                                 PeerAddr  => "my.site.com:80",
                                 Bps       => 6000 ); # 6000 Bytes/sec. =~ 48,000 bits/sec.

  $shaper->run(); # does not return

DESCRIPTION ^

Net::Shaper can be used to implement a point-to-point TCP tunnel that limits bandwidth.

BUGS ^

This module only works for TCP connections. It has only been tested on Linux.

AUTHOR ^

Benjamin Holzman, <bholzman@earthlink.net>