Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

poe::component::server::simplehttp::connection(3pm) [debian man page]

POE::Component::Server::SimpleHTTP::Connection(3pm)	User Contributed Perl Documentation    POE::Component::Server::SimpleHTTP::Connection(3pm)

NAME
POE::Component::Server::SimpleHTTP::Connection - Stores connection information for SimpleHTTP SYNOPSIS
use POE::Component::Server::SimpleHTTP::Connection; my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket ); # Print some stuff print $connection->remote_port; DESCRIPTION
This module simply holds some information from a SimpleHTTP connection. METHODS my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket ); $connection->remote_ip(); # Returns remote ip in dotted quad format ( 1.1.1.1 ) $connection->remote_port(); # Returns remote port $connection->remote_addr(); # Returns true remote address, consult the L<Socket> POD $connection->local_addr(); # Returns true local address, same as above $connection->local_ip(); # Returns local ip in dotted quad format ( 1.1.1.1 ) $connection->local_port(); # Returns local port $connection->dead(); # Returns a boolean value whether the socket is closed or not $connection->ssl(); # Returns a boolean value whether the socket is SSLified or not $connection->sslcipher(); # Returns the SSL Cipher type or undef if not SSL $connection->ID(); # unique ID of this connection EXPORT Nothing. SEE ALSO
POE::Component::Server::SimpleHTTP, POE::Component::Server::SimpleHTTP::Response AUTHOR
Apocalypse <apocal@cpan.org> Chris "BinGOs" Williams <chris@bingosnet.co.uk> COPYRIGHT AND LICENSE
Copyright X Apocalypse and Chris Williams This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-12-28 POE::Component::Server::SimpleHTTP::Connection(3pm)

Check Out this Related Man Page

POE::Component::IRC::Plugin::BotTraffic(3pm)		User Contributed Perl Documentation	      POE::Component::IRC::Plugin::BotTraffic(3pm)

NAME
POE::Component::IRC::Plugin::BotTraffic - A PoCo-IRC plugin that generates events when you send messages SYNOPSIS
use POE::Component::IRC::Plugin::BotTraffic; $irc->plugin_add( 'BotTraffic', POE::Component::IRC::Plugin::BotTraffic->new() ); sub irc_bot_public { my ($kernel, $heap) = @_[KERNEL, HEAP]; my $channel = $_[ARG0]->[0]; my $what = $_[ARG1]; print "I said '$what' on channel $channel "; return; } DESCRIPTION
POE::Component::IRC::Plugin::BotTraffic is a POE::Component::IRC plugin. It watches for when your bot sends PRIVMSGs and NOTICEs to the server and generates the appropriate events. These events are useful for logging what your bot says. METHODS
"new" No arguments required. Returns a plugin object suitable for feeding to POE::Component::IRC's "plugin_add" method. OUTPUT EVENTS
These are the events generated by the plugin. Both events have "ARG0" set to an arrayref of recipients and "ARG1" the text that was sent. "irc_bot_public" "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent. "irc_bot_msg" "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent. "irc_bot_action" "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent. "irc_bot_notice" "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent. AUTHOR
Chris 'BinGOs' Williams [chris@bingosnet.co.uk] SEE ALSO
POE::Component::IRC perl v5.14.2 2011-12-07 POE::Component::IRC::Plugin::BotTraffic(3pm)
Man Page