Net::Proxy::Connector::dummy - Dummy Net::Proxy connector


Net-Proxy documentation Contained in the Net-Proxy distribution.

Index


Code Index:

NAME

Top

Net::Proxy::Connector::dummy - Dummy Net::Proxy connector

DESCRIPTION

Top

Net::Proxy::Connecter::dummy is a Net::Proxy::Connector that does nothing. It doesn't listen for incoming connections and does connect to other hosts.

Future connectors may have their accept_from() method also handle the connection to a remote host. In this case, dummy may be used as an 'out' connector.

You could also use the source code of this module as a template for writing new Net::Proxy::Connector classes.

CONNECTOR OPTIONS

Top

None.

AUTHOR

Top

Philippe 'BooK' Bruhat, <book@cpan.org>.

COPYRIGHT

Top

LICENSE

Top

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


Net-Proxy documentation Contained in the Net-Proxy distribution.

package Net::Proxy::Connector::dummy;
use strict;
use warnings;

use Net::Proxy::Connector;
our @ISA = qw( Net::Proxy::Connector );

# IN
sub listen { }

sub accept_from { }

# OUT
sub connect { }

# READ
sub read_from { return '' }

# WRITE
sub write_to { }

1;

__END__