1POE::Component::Server:U:sSeirmpCloenPHtOTrETi:Pb::uC:toCemodpnonPneeecrntlti:oD:noS(ce3ur)mveenrt:a:tSiiomnpleHTTP::Connection(3)
2
3
4
6 use POE::Component::Server::SimpleHTTP::Connection;
7 my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
8
9 # Print some stuff
10 print $connection->remote_port;
11
13 This module simply holds some information from a SimpleHTTP connection.
14
15 METHODS
16
17 my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
18
19 $connection->remote_ip(); # Returns remote ip in dotted quad format ( 1.1.1.1 )
20 $connection->remote_port(); # Returns remote port
21 $connection->remote_addr(); # Returns true remote address, consult the L<Socket> POD
22 $connection->local_addr(); # Returns true local address, same as above
23 $connection->local_ip(); # Returns local ip in dotted quad format ( 1.1.1.1 )
24 $connection->local_port(); # Returns local port
25 $connection->dead(); # Returns a boolean value whether the socket is closed or not
26 $connection->ssl(); # Returns a boolean value whether the socket is SSLified or not
27 $connection->sslcipher(); # Returns the SSL Cipher type or undef if not SSL
28
29 EXPORT
30
31 Nothing.
32
34 L<POE::Component::Server::SimpleHTTP>
35
36 L<POE::Component::Server::SimpleHTTP::Response>
37
39 Apocalypse <apocal@cpan.org>
40
42 Copyright 2006 by Apocalypse
43
44 This library is free software; you can redistribute it and/or modify it
45 under the same terms as Perl itself.
46
47
48
49perl v5.8.8 POE::2C0o0m7p-o0n3e-n2t1::Server::SimpleHTTP::Connection(3)