Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::proxy::connector::dual(3pm) [debian man page]

Net::Proxy::Connector::dual(3pm)			User Contributed Perl Documentation			  Net::Proxy::Connector::dual(3pm)

NAME
Net::Proxy::Connector::dual - Y-shaped Net::Proxy connector DESCRIPTION
"Net::Proxy::Connecter::dual" is a "Net::Proxy::Connector" that can forward the connection to two distinct services, based on the client connection, before any data is exchanged. CONNECTOR OPTIONS
This connector can only work as an "in" connector. The "server_first" and "client_first" options are required: they are hashrefs containing the options necessary to create two "out" "Net::Proxy::Connector" objects that will be used to connect to the requested service. The "Net::Proxy::Connector::dual" object decides between the two services by waiting during a short timeout. If the client sends some data directly, then it is connected via the "client_first" connector. Otherwise, at the end of the timeout, it is connected via the "server_first" connector. o host The hostname on which the connector will listen for client connections. Default is "localhost". o port The port on which the connector will listen for client connections. o server_first Typically an "out" connector to a SSH server or any service that sends a banner line. o client_first Typically an "out" connectrot to a web server or SSL server. o timeout The timeout in seconds (can be decimal) to make a decision. Default is 1 second. AUTHOR
Philippe 'BooK' Bruhat, "<book@cpan.org>". ACKNOWLEDGMENTS
This module is based on a script named sslh, which I wrote with Frederic Ple "<sslh@wattoo.org>" (who had the original insight about the fact that not all servers speak first on the wire). Frederic wrote a C program, while I wrote a Perl script (based on my experience with connect-tunnel). Now that "Net::Proxy" is available, I've ported the Perl script to use it. COPYRIGHT
Copyright 2006 Philippe 'BooK' Bruhat, All Rights Reserved. LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2009-10-18 Net::Proxy::Connector::dual(3pm)

Check Out this Related Man Page

pm::Loudmouth(3pm)					User Contributed Perl Documentation					pm::Loudmouth(3pm)

NAME
Net::Jabber::Loudmouth - Perl interface for the loudmouth jabber library SYNOPSIS
use Net::Jabber::Loudmouth; my $connection = Net::Jabber::Loudmouth::Connection->new("server"); $connection->open_and_block(); $connection->authenticate_and_block("username", "password", "resource"); my $m = Net::Jabber::Loudmouth::Message->new("recipient", 'message'); $m->get_node->add_child("body", "message"); $connection->send($m); DESCRIPTION
Net::Jabber::Loudmouth is a perl interface for libloudmouth, Lightweight C Jabber library. It allows you to do the same stuff with Net::Jabber, but with a nicer interface and much faster, because most of the code is written in C. FUNCTIONS
Net::Jabber::Loudmouth only contains two functions. Other functionality can be found in Net::Jabber::Loudmouth::*. default_port Net::Jabber::Loudmouth->default_port() Returns the default port which will be used for every connection. default_port_ssl Net::Jabber::Loudmouth->default_port_ssl() Returns the default ssl port. Use $connection->set_port(Net::Jabber::Loudmouth->default_port_ssl()) to tell a connection to use the ssl port. See Net::Jabber::Loudmouth::Connection. SEE ALSO
Net::Jabber::Loudmouth::Connection, Net::Jabber::Loudmouth::Message, Net::Jabber::Loudmouth::MessageHandler, Net::Jabber::Loudmouth::MessageNode, Net::Jabber::Loudmouth::SSL, Net::Jabber::Loudmouth::Proxy AUTHOR
Florian Ragwitz, <rafl@debian.org> COPYRIGHT AND LICENSE
Copyright (C) 2005 by Florian Ragwitz This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2006-03-12 pm::Loudmouth(3pm)
Man Page