NAME

AmphetaDesk::WebServer - Subclass of HTTP::Daemon (the webserver)

SYNOPSIS

    my $daemon = start_webserver;
    my $radio_daemon = start_radio_webserver
       if get_setting("user_start_radio_webserver");

DESCRIPTION

This package controls our webserver daemon - both in regards to over-riding the defaults of the HTTP::Daemon product tokens, as well as providing a blackbox for our various webserver creation routines. Only two routines are exported: start_webserver, and a Radio Userland compatible start_radio_webserver.

METHODS

start_radio_webserver
This routine starts an HTTP::Daemon webserver on port 5335 for the sole goal of listening for Radio Userland coffee mug subscriptions. The main AmphetaDesk code handles all of that. This routine is called conditionally based on user settings (in AmphetaDesk::Settings). Returns an HTTP::Daemon server object if successful, else 0. The socket is autoflushed.
start_webserver
This routine starts up an HTTP::Daemon webserver on one an unlimited number of user customizable ports - determined via configuration values in AmphetaDesk::Settings). Interaction with this object takes place in the main AmphetaDesk module. Returns an HTTP::Daemon server object if successful, else, AmphetaDesk will die (starting an internal webserver is required). The socket is autoflushed.

SEE ALSO

AUTHOR

Morbus Iff, <morbus@disobey.com>

COPYRIGHT AND LICENSE

Copyright 2000-2004 Morbus Iff <morbus@disobey.com>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.