samplechat.pl - Show a basic Net::Server::Multiplex sample
# To run this in background daemon mode, listening on port 2000, do: samplechat.pl --setsid=1 --log_file=/tmp/samplechat.log --pid_file=/tmp/samplechat.pid --port=2000 # To turn off the daemon, do: kill `cat /tmp/samplechat.pid`;
# from a terminal type telnet localhost 2000 # you will then be in a echo server.
This example demonstrates some of the features of Net::Server::Multiplex
3 POD Errors
The following errors were encountered while parsing the POD:
Unknown directive: =head
To install Net::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Server
CPAN shell
perl -MCPAN -e shell install Net::Server
For more information on module installation, please visit the detailed CPAN module installation guide.