|
Audio::Daemon::MPG123::Server - The Server portion of Audio::Daemon::MPG123 |
Audio::Daemon::MPG123::Server - The Server portion of Audio::Daemon::MPG123
use Audio::Daemon::MPG123::Server;
# set things up my $daemon = new Audio::Daemon::MPG123::Server(Port => 9101);
# this should never return... it is a daemon after all. $server->mainloop;
=head1 DESCRIPTION
The Server portion of Audio::Daemon::MPG123, a frontend to a frontend for MPG123. It is kept very seperate to give the user full control over how to daemonize, keep running, monitor it, log messages, maintain access control, etc.
There is but one method to contruct a new Audio::Daemon::MPG123::Server object:
<type>, <msg>, [caller(1)]
where <type> is one of debug, info, error, crit, warn. <msg> is the text message, and [caller] is the array returned by the second form of the perlfunc caller(). This will give you the method, line number, etc. of where the messagee is coming from. With this logging feature, I don't have to worry about syslog, stdout, or how to report errors or debug info... you do!
Jay Jacobs jayj@cpan.org
Audio::Daemon::MPG123
Audio::Play::MPG123
perl(1).
|
Audio::Daemon::MPG123::Server - The Server portion of Audio::Daemon::MPG123 |