Eric Wolf > Yote-0.1007 > Yote::WebAppServer

Download:
Yote-0.1007.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.097   Source   Latest Release: Yote-0.206

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

check_locked_for_dirty()

Checks items that are dirty and notes that in the inter process communications.

do404

Return a 404 not found page and exit.

errlog( msg )

Write the message to the error log

iolog( msg )

Writes to an IO log for client server communications

init_server
lock_object( obj_id )

Locks the given object id for use by this process only until it is unlocked.

unlock_all()

Unlocks all objects locked by this process and notifies other processes

unlock_objects( objlist )

Unlocked items in the given list and notifices other processes.

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.

syntax highlighting: