POE::Filter::ThruPut - a POE filter that passes data through unchanged whilst counting bytes sent and received
version 1.00
POE::Filter::ThruPut passes data through without changing it, but counts the bytes sent and received. It follows POE::Filter's API and can be used with POE::Filter::Stackable.
new
Creates a new POE::Filter::ThruPut object.
get_one_start
get_one
get_pending
get
put
All the above are standard POE::Filter methods. They pass data through unchanged.
send
Returns the number of bytes sent through the filter
recv
Returns the numbers of bytes received through the filter
stats
Returns an ARRAYREF of the number of bytes sent and received, respectively.
ARRAYREF
POE::Filter for more information about filters in general.
This module was based on POE::Filter::Stream.
Chris Williams <chris@bingosnet.co.uk>
This software is copyright (c) 2018 by Chris Williams and Rocco Caputo.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install POE::Filter::ThruPut, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Filter::ThruPut
CPAN shell
perl -MCPAN -e shell install POE::Filter::ThruPut
For more information on module installation, please visit the detailed CPAN module installation guide.