1POE::Component::Server:U:sSeirmpCloenPHtOTrETi:Pb::uC:toCemodpnonPneeecrntlti:oD:noS(ce3ur)mveenrt:a:tSiiomnpleHTTP::Connection(3)
2
3
4

NAME

6       POE::Component::Server::SimpleHTTP::Connection - Stores connection
7       information for SimpleHTTP
8

VERSION

10       version 2.28
11

SYNOPSIS

13               use POE::Component::Server::SimpleHTTP::Connection;
14               my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
15
16               # Print some stuff
17               print $connection->remote_port;
18

DESCRIPTION

20               This module simply holds some information from a SimpleHTTP connection.
21
22   METHODS
23               my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
24
25               $connection->remote_ip();       # Returns remote address as a string ( 1.1.1.1 or 2000::1 )
26               $connection->remote_port();     # Returns remote port
27               $connection->remote_addr();     # Returns true remote address, consult the L<Socket> POD
28               $connection->local_addr();      # Returns true local address, same as above
29               $connection->local_ip();        # Returns remote address as a string ( 1.1.1.1 or 2000::1 )
30               $connection->local_port();      # Returns local port
31               $connection->dead();            # Returns a boolean value whether the socket is closed or not
32               $connection->ssl();             # Returns a boolean value whether the socket is SSLified or not
33               $connection->sslcipher();       # Returns the SSL Cipher type or undef if not SSL
34               $connection->ID();          # unique ID of this connection
35
36   EXPORT
37       Nothing.
38

SEE ALSO

40       POE::Component::Server::SimpleHTTP,
41       POE::Component::Server::SimpleHTTP::Response
42

AUTHOR

44       Apocalypse <APOCAL@cpan.org>
45
47       This software is copyright (c) 2018 by Apocalypse, Chris Williams,
48       Eriam Schaffter, Marlon Bailey and Philip Gwyn.
49
50       This is free software; you can redistribute it and/or modify it under
51       the same terms as the Perl 5 programming language system itself.
52
53
54
55perl v5.36.0                 POE::2C0o2m2p-o0n7e-n2t2::Server::SimpleHTTP::Connection(3)
Impressum