Kyoto Tycoon
Public Member Functions
kyototycoon::ThreadedServer::Worker Class Reference

Interface to process each request. More...

#include <ktthserv.h>

List of all members.

Public Member Functions

virtual ~Worker ()
 Destructor.
virtual bool process (ThreadedServer *serv, Session *sess)=0
 Process each request.
virtual void process_idle (ThreadedServer *serv)
 Process each idle event.
virtual void process_timer (ThreadedServer *serv)
 Process each timer event.
virtual void process_start (ThreadedServer *serv)
 Process the starting event.
virtual void process_finish (ThreadedServer *serv)
 Process the finishing event.

Detailed Description

Interface to process each request.


Constructor & Destructor Documentation

Destructor.


Member Function Documentation

virtual bool kyototycoon::ThreadedServer::Worker::process ( ThreadedServer serv,
Session sess 
) [pure virtual]

Process each request.

Parameters:
servthe server.
sessthe session with the client.
Returns:
true to reuse the session, or false to close the session.

Process each idle event.

Parameters:
servthe server.

Process each timer event.

Parameters:
servthe server.

Process the starting event.

Parameters:
servthe server.

Process the finishing event.

Parameters:
servthe server.