POE::C...ection(3pm)
π POE::Component::Server::SimpleHTTP::Connection π
okay bestie, so this is the manual page for POE::Component::Server::SimpleHTTP::Connection, from the User Contributed Perl Documentation set β you know, the lil module that's just here to hold onto your connection deets for SimpleHTTP. she's not doing a lot but she's doing it flawlessly π
β¨ NAME β¨
POE::Component::Server::SimpleHTTP::Connection β stores connection info for SimpleHTTP, fr fr
πΈ VERSION πΈ
version 2.30 β yes bestie, that's the one
π SYNOPSIS π
like, just pull her in and hand her a socket:
use POE::Component::Server::SimpleHTTP::Connection;
my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
# Print some stuff
print $connection->remote_port;
that's literally it. she's low maintenance π«Ά
π¦ DESCRIPTION π¦
This module simply holds some information from a SimpleHTTP connection. that's the whole job. she's a keeper of receipts, a little vault of socket lore π¦β¨
π METHODS π
make her first:
my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
and then, bestie, you've got the whole arsenal:
$connection->remote_ip(); # Returns remote address as a string ( 1.1.1.1 or 2000::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 remote address as a string ( 1.1.1.1 or 2000::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
breaking it down so you truly get it:
$connection->remote_ip()β hands you the remote address as a string, like1.1.1.1or2000::1π»$connection->remote_port()β the remote port, that's it, that's the tea$connection->remote_addr()β the true remote address. for the deep lore, consult theL<Socket>POD π$connection->local_addr()β the true local address, same deal as above, go read that Socket POD$connection->local_ip()β returns the remote address as a string (1.1.1.1or2000::1) β yes, the comment really does say remote, we're keeping it exactly as written, no notes π$connection->local_port()β the local port, slay$connection->dead()β a boolean: is the socket closed or not? π (ironically the method nameddeadis the one telling you if something is dead, iconic)$connection->ssl()β a boolean: is the socket SSLified or not? π$connection->sslcipher()β the SSL Cipher type, orundefif it's not SSL. no SSL, no cipher, periodt β¨$connection->ID()β the unique ID of this connection π
π§ EXPORT π§
Nothing. literally nothing. not a single thing. she gives you nothing on import and she's valid for it π
π SEE ALSO π
go peek at her friends, they're all iconic:
POE::Component::Server::SimpleHTTPPOE::Component::Server::SimpleHTTP::Response
β AUTHOR β
Apocalypse <APOCAL@cpan.org> π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2023 by Apocalypse, Chris Williams, Eriam Schaffter, Marlon Bailey and Philip Gwyn.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page bestie, no cap π built with perl v5.36.0, dated 2023-06-11, and living under the manual name POE::C...ection(3pm) β go forth and inspect your sockets π
β¨
π¦ where this page comes from
- debian trixie: libpoe-component-server-simplehttp-perl 2.30-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpoe-component-server-simplehttp-perl 2.30-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpoe-component-server-simplehttp-perl 2.30-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpoe-component-server-simplehttp-perl 2.30-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms