Net::Proxy::Connector::tcp - Net::Proxy connector for standard tcp proxies
# sample proxy using Net::Proxy::Connector::tcp use Net::Proxy; my $proxy = Net::Proxy->new( in => { type => tcp, port => '6789' }, out => { type => tcp, host => 'remotehost', port => '9876' }, ); $proxy->register(); Net::Proxy->mainloop();
Net::Proxy::Connector::tcp is a connector for handling basic, standard TCP connections.
Net::Proxy::Connector::tcp
The connector accept the following options:
in
host
The listening address. If not given, the default is localhost.
localhost
port
The listening port.
out
The remote host.
The remote port.
timeout
The socket timeout for connection (out only).
Philippe 'BooK' Bruhat, <book@cpan.org>.
<book@cpan.org>
Copyright 2006 Philippe 'BooK' Bruhat, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Proxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Proxy
CPAN shell
perl -MCPAN -e shell install Net::Proxy
For more information on module installation, please visit the detailed CPAN module installation guide.