POE::Component::Server::Daytime - A POE component that implements an RFC 867 Daytime server.
use POE::Component::Server::Daytime; my $self = POE::Component::Server::Daytime->spawn( Alias => 'Daytime-Server', BindAddress => '127.0.0.1', BindPort => 7777, options => { trace => 1 }, );
POE::Component::Server::Daytime implements a RFC 867 http://www.faqs.org/rfcs/rfc867.html TCP/UDP Daytime server, using POE. It is a class inherited from POE::Component::Server::Echo.
Takes a number of optional values:
"Alias", the kernel alias that this component is to be blessed with; "BindAddress", the address on the local host to bind to, defaults to POE::Wheel::SocketFactory default; "BindPort", the local port that we wish to listen on for requests, defaults to 19 as per RFC, this will require "root" privs on UN*X; "options", should be a hashref, containing the options for the component's session, see POE::Session for more details on what this should contain.
Report any bugs through http://rt.cpan.org/.
Chris 'BinGOs' Williams, <chris@bingosnet.co.uk>
Copyright (C) Chris Williams
This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.
POE
POE::Session
POE::Wheel::SocketFactory
POE::Component::Server::Echo
http://www.faqs.org/rfcs/rfc867.html
To install POE::Component::Server::Daytime, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Server::Daytime
CPAN shell
perl -MCPAN -e shell install POE::Component::Server::Daytime
For more information on module installation, please visit the detailed CPAN module installation guide.