++ed by:

1 non-PAUSE user(s).

Philip Gwyn

NAME

POEx::HTTP::Server::Connection - Object encapsulating an HTTP connection

SYNOPSIS

    use POEx::HTTP::Server;

    POEx::HTTP::Server->spawn( handler => 'poe:my-alias/handler' );

    # events of session my-alias:
    sub handler {
        my( $heap, $req, $resp ) = @_[HEAP,ARG0,ARG1];

        my $c = $req->connection;
        warn "Request to ", $c->local_addr, ":", $c->local_port;
        warn "Request from ", $c->remote_addr, ":", $c->remote_port;
    }

DESCRIPTION

METHODS

ID

A unique ID for this browser connection.

remote_addr

peeraddr

Return the address part of the sockaddr structure for the socket on the peer host.

remote_host

remote_ip

peerhost

Return the address part of the sockaddr structure for the socket on the peer host in a text form xx.xx.xx.xx.

remote_port

peerport

Return the port number for the socket on the peer host.

local_addr

hostaddr

Return the port number that the socket is using on the local host.

local_host

hosthost

local_ip

Return the local address part of the sockaddr structure for the socket in a text form xx.xx.xx.xx.

local_port

hostport

Return the port number that the socket is using on the local host.

SEE ALSO

POEx::HTTP::Server, POEx::HTTP::Server::Response.

AUTHOR

Philip Gwyn, <gwyn -at- cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by Philip Gwyn

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.




Hosting generously
sponsored by Bytemark