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

#include <HttpServer.h>

Inheritance diagram for HttpServer:
NetServer HttpServletExec NetAdminServer

List of all members.

Public Member Functions

 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 DoGet (HttpRequest &request, HttpResponse &response)
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 Attributes

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 29 of file HttpServer.h.


Constructor & Destructor Documentation

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

Definition at line 26 of file HttpServer.cpp.

HttpServer::~HttpServer ( )
virtual

Definition at line 32 of file HttpServer.cpp.


Member Function Documentation

Text HttpServer::DefaultResponse ( )
virtual

Reimplemented from NetServer.

Definition at line 79 of file HttpServer.cpp.

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

Reimplemented in HttpServletExec.

Definition at line 109 of file HttpServer.cpp.

bool HttpServer::DoHead ( HttpRequest request,
HttpResponse response 
)
virtual

Definition at line 196 of file HttpServer.cpp.

bool HttpServer::DoPost ( HttpRequest request,
HttpResponse response 
)
virtual

Definition at line 188 of file HttpServer.cpp.

Text HttpServer::ErrorResponse ( )
virtual

Reimplemented from NetServer.

Definition at line 89 of file HttpServer.cpp.

Text HttpServer::GetServerName ( )
virtual

Definition at line 65 of file HttpServer.cpp.

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

Definition at line 37 of file HttpServer.h.

Text HttpServer::ProcessRequest ( Text  request,
const NetAddr addr 
)
virtual

Reimplemented from NetServer.

Definition at line 38 of file HttpServer.cpp.

void HttpServer::SetServerName ( const char *  name)
virtual

Definition at line 71 of file HttpServer.cpp.

static const char* HttpServer::TYPENAME ( )
inlinestatic

Reimplemented from NetServer.

Reimplemented in HttpServletExec.

Definition at line 32 of file HttpServer.h.


Member Data Documentation

Text HttpServer::http_server_name
protected

Definition at line 51 of file HttpServer.h.


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