Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HttpServletExec Class Reference

#include <HttpServletExec.h>

Inheritance diagram for HttpServletExec:
HttpServer NetServer NetAdminServer

List of all members.

Public Member Functions

 HttpServletExec (WORD port, int poolsize=1)
virtual ~HttpServletExec ()
int operator== (const HttpServletExec &l) const
virtual bool DoGet (HttpRequest &request, HttpResponse &response)
virtual HttpServletGetServlet (HttpRequest &request)
virtual HttpSessionGetSession (HttpRequest &request)
virtual DWORD CheckSessions ()
virtual int GetSessionTimeout () const
virtual void SetSessionTimeout (int t)
- Public Member Functions inherited from HttpServer
 HttpServer (WORD port, int poolsize=1)
virtual ~HttpServer ()
int operator== (const HttpServer &l) const
virtual Text ProcessRequest (Text request, const NetAddr &addr)
virtual Text DefaultResponse ()
virtual Text ErrorResponse ()
virtual bool DoPost (HttpRequest &request, HttpResponse &response)
virtual bool DoHead (HttpRequest &request, HttpResponse &response)
virtual Text GetServerName ()
virtual void SetServerName (const char *name)
- Public Member Functions inherited from NetServer
 NetServer (WORD port, int poolsize=1)
virtual ~NetServer ()
int operator== (const NetServer &l) const
virtual void Shutdown ()
virtual DWORD Listener ()
virtual DWORD Reader (int index)
const NetAddrGetAddress () const
int GetLastError () const

Static Public Member Functions

static const char * TYPENAME ()

Protected Member Functions

virtual void DoSyncedCheck ()

Protected Attributes

List< HttpSessionsessions
int session_timeout
HANDLE hsession
bool exec_shutdown
- Protected Attributes inherited from HttpServer
Text http_server_name
- Protected Attributes inherited from NetServer
NetAddr addr
NetSock sock
NetAddr client_addr
int poolsize
HANDLE hreader
HANDLE * pool
NetSock ** conn
NetAddrclients
int err
bool server_shutdown
ThreadSync sync

Detailed Description

Definition at line 28 of file HttpServletExec.h.


Constructor & Destructor Documentation

HttpServletExec::HttpServletExec ( WORD  port,
int  poolsize = 1 
)

Definition at line 98 of file HttpServletExec.cpp.

HttpServletExec::~HttpServletExec ( )
virtual

Definition at line 108 of file HttpServletExec.cpp.


Member Function Documentation

DWORD HttpServletExec::CheckSessions ( )
virtual

Definition at line 204 of file HttpServletExec.cpp.

bool HttpServletExec::DoGet ( HttpRequest request,
HttpResponse response 
)
virtual

Reimplemented from HttpServer.

Definition at line 169 of file HttpServletExec.cpp.

void HttpServletExec::DoSyncedCheck ( )
protectedvirtual

Reimplemented in NetAdminServer.

Definition at line 231 of file HttpServletExec.cpp.

HttpServlet * HttpServletExec::GetServlet ( HttpRequest request)
virtual

Reimplemented in NetAdminServer.

Definition at line 123 of file HttpServletExec.cpp.

HttpSession * HttpServletExec::GetSession ( HttpRequest request)
virtual

Definition at line 131 of file HttpServletExec.cpp.

virtual int HttpServletExec::GetSessionTimeout ( ) const
inlinevirtual

Definition at line 45 of file HttpServletExec.h.

int HttpServletExec::operator== ( const HttpServletExec l) const
inline

Definition at line 36 of file HttpServletExec.h.

virtual void HttpServletExec::SetSessionTimeout ( int  t)
inlinevirtual

Definition at line 46 of file HttpServletExec.h.

static const char* HttpServletExec::TYPENAME ( )
inlinestatic

Reimplemented from HttpServer.

Definition at line 31 of file HttpServletExec.h.


Member Data Documentation

bool HttpServletExec::exec_shutdown
protected

Definition at line 54 of file HttpServletExec.h.

HANDLE HttpServletExec::hsession
protected

Definition at line 53 of file HttpServletExec.h.

int HttpServletExec::session_timeout
protected

Definition at line 52 of file HttpServletExec.h.

List<HttpSession> HttpServletExec::sessions
protected

Definition at line 51 of file HttpServletExec.h.


The documentation for this class was generated from the following files: