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

#include <NetServer.h>

Inheritance diagram for NetServer:
HttpServer HttpServletExec NetAdminServer

List of all members.

Public Member Functions

 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)
virtual Text ProcessRequest (Text request, const NetAddr &addr)
virtual Text DefaultResponse ()
virtual Text ErrorResponse ()
const NetAddrGetAddress () const
int GetLastError () const

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

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 27 of file NetServer.h.


Constructor & Destructor Documentation

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

Definition at line 34 of file NetServer.cpp.

NetServer::~NetServer ( )
virtual

Definition at line 70 of file NetServer.cpp.


Member Function Documentation

Text NetServer::DefaultResponse ( )
virtual

Reimplemented in HttpServer.

Definition at line 233 of file NetServer.cpp.

Text NetServer::ErrorResponse ( )
virtual

Reimplemented in HttpServer.

Definition at line 248 of file NetServer.cpp.

const NetAddr& NetServer::GetAddress ( ) const
inline

Definition at line 45 of file NetServer.h.

int NetServer::GetLastError ( ) const
inline

Definition at line 46 of file NetServer.h.

DWORD NetServer::Listener ( )
virtual

Definition at line 117 of file NetServer.cpp.

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

Definition at line 35 of file NetServer.h.

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

Reimplemented in HttpServer.

Definition at line 224 of file NetServer.cpp.

DWORD NetServer::Reader ( int  index)
virtual

Definition at line 164 of file NetServer.cpp.

void NetServer::Shutdown ( )
virtual

Definition at line 99 of file NetServer.cpp.

static const char* NetServer::TYPENAME ( )
inlinestatic

Reimplemented in HttpServer, and HttpServletExec.

Definition at line 30 of file NetServer.h.


Member Data Documentation

NetAddr NetServer::addr
protected

Definition at line 49 of file NetServer.h.

NetAddr NetServer::client_addr
protected

Definition at line 51 of file NetServer.h.

NetAddr* NetServer::clients
protected

Definition at line 57 of file NetServer.h.

NetSock** NetServer::conn
protected

Definition at line 56 of file NetServer.h.

int NetServer::err
protected

Definition at line 58 of file NetServer.h.

HANDLE NetServer::hreader
protected

Definition at line 54 of file NetServer.h.

HANDLE* NetServer::pool
protected

Definition at line 55 of file NetServer.h.

int NetServer::poolsize
protected

Definition at line 53 of file NetServer.h.

bool NetServer::server_shutdown
protected

Definition at line 59 of file NetServer.h.

NetSock NetServer::sock
protected

Definition at line 50 of file NetServer.h.

ThreadSync NetServer::sync
protected

Definition at line 61 of file NetServer.h.


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