POE::Component::Client::Ident(3pm) | User Contributed Perl Documentation | POE::Component::Client::Ident(3pm) |
POE::Component::Client::Ident - A component that provides non-blocking ident lookups to your sessions.
use POE::Component::Client::Ident; my $poco_obj = POE::Component::Client::Ident->spawn ( 'Ident-Client' ); $kernel->post ( 'Ident-Client' => query => Socket => $socket ); $kernel->post ( 'Ident-Client' => query => PeerAddr => '10.0.0.1', PeerPort => 2345, SockAddr => '192.168.1.254', SockPort => 6669, BuggyIdentd => 1, TimeOut => 30 );
POE::Component::Client::Ident is a POE component that provides non-blocking Ident lookup services to other components and sessions. The Ident protocol is described in RFC 1413 <http://www.faqs.org/rfcs/rfc1413.html>.
The component takes requests in the form of events, spawns POE::Component::Client::Ident::Agent sessions to perform the Ident queries and returns the appropriate responses to the requesting session.
Returns an object.
These methods are available on the poco object returned by spawn().
The component accepts the following events:
"PeerAddr", the remote IP address where a TCP connection has originated; "PeerPort", the port where the TCP has originated from; "SockAddr", the address of our end of the connection; "SockPort", the port of our end of the connection;
OR:
"Socket", the socket handle of the connection, the component will work out all the details for you. If Socket is defined, it will override the settings of the other arguments.
See the documentation for Ident-Agent for extra parameters you may pass.
The events you can expect to receive having submitted a 'query'.
All the events returned by the component have a hashref as ARG0. This hashref contains the arguments that were passed to the component. If a socket handle was passed, the hashref will contain the appropriate PeerAddr, PeerPort, SockAddr and Sock Port.
Chris Williams, <chris@bingosnet.co.uk<gt>
Copyright © Chris Williams.
This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.
RFC 1413 <http://www.faqs.org/rfcs/rfc1413.html>
POE::Component::Client::Ident::Agent
2022-12-04 | perl v5.36.0 |