POEx::HTTP::Server::Connection - Object encapsulating an HTTP connection
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; }
A unique ID for this browser connection.
Return the address part of the sockaddr structure for the socket on the peer host.
Return the address part of the sockaddr structure for the socket on the peer host in a text form xx.xx.xx.xx.
Return the port number for the socket on the peer host.
Return the port number that the socket is using on the local host.
Return the local address part of the sockaddr structure for the socket in a text form xx.xx.xx.xx.
POEx::HTTP::Server, POEx::HTTP::Server::Response.
Philip Gwyn, <gwyn -at- cpan.org>
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.
To install POEx::HTTP::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POEx::HTTP::Server
CPAN shell
perl -MCPAN -e shell install POEx::HTTP::Server
For more information on module installation, please visit the detailed CPAN module installation guide.