NAME
Yote::WebAppServer - is a library used for creating prototype applications for the web.
SYNOPSIS
use Yote::WebAppServer;
my $server = new Yote::WebAppServer();
$server->start_server();
DESCRIPTION
This starts an appslication server running on a specified port and hooked up to a specified datastore. Additional parameters are passed to the datastore.
The server set up uses Net::Server::Fork receiving and sending messages on multiple threads. These threads queue up the messages for a single threaded event loop to make things thread safe. Incomming requests can either wait for their message to be processed or return immediately.
PUBLIC METHODS
- do404
-
Return a 404 not found page and exit.
- process_http_request( )
-
This implements Net::Server::HTTP and is called automatically for each incomming request.
- shutdown( )
-
Shuts down the yote server, saving all unsaved items.
- start_server( )
BUGS
There are likely bugs to be discovered. This is alpha software.
More important than bugs are the incompletions, such as the cron not being taken offline for now, and the Cache not completed. These are top todo at the time of writing.
AUTHOR
Eric Wolf
LICENSE AND COPYRIGHT
Copyright (C) 2011 Eric Wolf
This module is free software; it can be used under the same terms as perl itself.