POE::C...ection(3pm)

πŸ“¦
version 2.30 Β· 5 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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, like 1.1.1.1 or 2000::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 the L<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.1 or 2000::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 named dead is 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, or undef if 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::SimpleHTTP
  • POE::Component::Server::SimpleHTTP::Response

⭐ AUTHOR ⭐

Apocalypse <APOCAL@cpan.org> 🫢


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