Apocalypse > POE-Component-Server-SimpleHTTP-1.13 > POE::Component::Server::SimpleHTTP::Connection

Download:
POE-Component-Server-SimpleHTTP-1.13.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  13
Open  2
View/Report Bugs
Module Version: 1.05   Source   Latest Release: POE-Component-Server-SimpleHTTP-2.18

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

EXPORT

Nothing.

SEE ALSO ^

        L<POE::Component::Server::SimpleHTTP>

        L<POE::Component::Server::SimpleHTTP::Response>

AUTHOR ^

Apocalypse <apocal@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright 2006 by Apocalypse

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: