1POE::Component::Server:U:sSeirmpCloenPHtOTrETi:Pb::uC:toCemodpnonPneeecrntlti:oD:noS(ce3ur)mveenrt:a:tSiiomnpleHTTP::Connection(3)
2
3
4
6 POE::Component::Server::SimpleHTTP::Connection - Stores connection
7 information for SimpleHTTP
8
10 use POE::Component::Server::SimpleHTTP::Connection;
11 my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
12
13 # Print some stuff
14 print $connection->remote_port;
15
17 This module simply holds some information from a SimpleHTTP connection.
18
19 METHODS
20 my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
21
22 $connection->remote_ip(); # Returns remote ip in dotted quad format ( 1.1.1.1 )
23 $connection->remote_port(); # Returns remote port
24 $connection->remote_addr(); # Returns true remote address, consult the L<Socket> POD
25 $connection->local_addr(); # Returns true local address, same as above
26 $connection->local_ip(); # Returns local ip in dotted quad format ( 1.1.1.1 )
27 $connection->local_port(); # Returns local port
28 $connection->dead(); # Returns a boolean value whether the socket is closed or not
29 $connection->ssl(); # Returns a boolean value whether the socket is SSLified or not
30 $connection->sslcipher(); # Returns the SSL Cipher type or undef if not SSL
31 $connection->ID(); # unique ID of this connection
32
33 EXPORT
34 Nothing.
35
37 POE::Component::Server::SimpleHTTP,
38 POE::Component::Server::SimpleHTTP::Response
39
41 Apocalypse <apocal@cpan.org>
42
43 Chris "BinGOs" Williams <chris@bingosnet.co.uk>
44
46 Copyright X Apocalypse and Chris Williams
47
48 This library is free software; you can redistribute it and/or modify it
49 under the same terms as Perl itself.
50
51
52
53perl v5.12.1 POE::2C0o1m0p-o0n5e-n1t9::Server::SimpleHTTP::Connection(3)