POE::Component::Server::SimpleHTTP::Connection(3pm)

POE::Component::Server::SimpleHTTP::Connection3pm

Stores connection information for simplehttp

Usage

        use POE::Component::Server::SimpleHTTP::Connection;
        my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
        # Print some stuff
        print $connection->remote_port;

Version

version 2.30

Overview

        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 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

Export

Nothing.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 7 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10–11
  7. 12
  8. 13

Author

Apocalypse <[email protected]>

From libpoe-component-server-simplehttp-perl 2.30-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.