The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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

accesslog( msg )

Write the message to the access log

do404

Return a 404 not found page and exit.

errlog( msg )

Write the message to the error log

init_server
new

Returns a new WebAppServer.

Sets up Initial database server and tables.

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( )

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.