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

#include <NetAdminServer.h>

Inheritance diagram for NetAdminServer:
HttpServletExec HttpServer NetServer

List of all members.

Public Member Functions

virtual ~NetAdminServer ()
int operator== (const NetAdminServer &s) const
virtual HttpServletGetServlet (HttpRequest &request)
virtual void AddUser (NetUser *user)
virtual void DelUser (NetUser *user)
virtual int NumUsers ()
virtual bool HasHost ()
virtual List< NetUser > & GetUsers ()
virtual NetUserFindUserBySession (Text id)
virtual void AddChat (NetUser *user, const char *msg)
ListIter< NetChatEntryGetChat ()
DWORD GetStartTime () const
virtual void GameOn ()
virtual void GameOff ()
- Public Member Functions inherited from HttpServletExec
 HttpServletExec (WORD port, int poolsize=1)
virtual ~HttpServletExec ()
int operator== (const HttpServletExec &l) const
virtual bool DoGet (HttpRequest &request, HttpResponse &response)
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 NetAdminServerGetInstance (WORD port=0)
- Static Public Member Functions inherited from HttpServletExec
static const char * TYPENAME ()

Protected Member Functions

 NetAdminServer (WORD port)
virtual void DoSyncedCheck ()

Protected Attributes

DWORD start_time
List< NetUseradmin_users
- Protected Attributes inherited from HttpServletExec
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 31 of file NetAdminServer.h.


Constructor & Destructor Documentation

NetAdminServer::~NetAdminServer ( )
virtual

Definition at line 448 of file NetAdminServer.cpp.

NetAdminServer::NetAdminServer ( WORD  port)
protected

Definition at line 442 of file NetAdminServer.cpp.


Member Function Documentation

void NetAdminServer::AddChat ( NetUser user,
const char *  msg 
)
virtual

Definition at line 486 of file NetAdminServer.cpp.

void NetAdminServer::AddUser ( NetUser user)
virtual

Definition at line 511 of file NetAdminServer.cpp.

void NetAdminServer::DelUser ( NetUser user)
virtual

Definition at line 518 of file NetAdminServer.cpp.

void NetAdminServer::DoSyncedCheck ( )
protectedvirtual

Reimplemented from HttpServletExec.

Definition at line 566 of file NetAdminServer.cpp.

NetUser * NetAdminServer::FindUserBySession ( Text  id)
virtual

Definition at line 553 of file NetAdminServer.cpp.

virtual void NetAdminServer::GameOff ( )
inlinevirtual

Definition at line 53 of file NetAdminServer.h.

virtual void NetAdminServer::GameOn ( )
inlinevirtual

Definition at line 52 of file NetAdminServer.h.

ListIter< NetChatEntry > NetAdminServer::GetChat ( )

Definition at line 497 of file NetAdminServer.cpp.

NetAdminServer * NetAdminServer::GetInstance ( WORD  port = 0)
static

Definition at line 434 of file NetAdminServer.cpp.

HttpServlet * NetAdminServer::GetServlet ( HttpRequest request)
virtual

Reimplemented from HttpServletExec.

Definition at line 457 of file NetAdminServer.cpp.

DWORD NetAdminServer::GetStartTime ( ) const
inline

Definition at line 50 of file NetAdminServer.h.

List< NetUser > & NetAdminServer::GetUsers ( )
virtual

Definition at line 534 of file NetAdminServer.cpp.

bool NetAdminServer::HasHost ( )
virtual

Definition at line 540 of file NetAdminServer.cpp.

int NetAdminServer::NumUsers ( )
virtual

Definition at line 527 of file NetAdminServer.cpp.

int NetAdminServer::operator== ( const NetAdminServer s) const
inline

Definition at line 36 of file NetAdminServer.h.


Member Data Documentation

List<NetUser> NetAdminServer::admin_users
protected

Definition at line 63 of file NetAdminServer.h.

DWORD NetAdminServer::start_time
protected

Definition at line 62 of file NetAdminServer.h.


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