diff options
Diffstat (limited to 'Stars45/NetAdminServer.h')
-rw-r--r-- | Stars45/NetAdminServer.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/Stars45/NetAdminServer.h b/Stars45/NetAdminServer.h index a285adf..9335a78 100644 --- a/Stars45/NetAdminServer.h +++ b/Stars45/NetAdminServer.h @@ -1,15 +1,15 @@ /* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: NetAdminServer.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: NetAdminServer.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- HTTP Servlet Engine for Multiplayer Admin
+ OVERVIEW
+ ========
+ HTTP Servlet Engine for Multiplayer Admin
*/
@@ -31,36 +31,36 @@ class NetUser; class NetAdminServer : public HttpServletExec
{
public:
- virtual ~NetAdminServer();
+ virtual ~NetAdminServer();
- int operator == (const NetAdminServer& s) const { return this == &s; }
+ int operator == (const NetAdminServer& s) const { return this == &s; }
- virtual HttpServlet* GetServlet(HttpRequest& request);
+ virtual HttpServlet* GetServlet(HttpRequest& request);
- virtual void AddUser(NetUser* user);
- virtual void DelUser(NetUser* user);
- virtual int NumUsers();
- virtual bool HasHost();
- virtual List<NetUser>& GetUsers();
+ virtual void AddUser(NetUser* user);
+ virtual void DelUser(NetUser* user);
+ virtual int NumUsers();
+ virtual bool HasHost();
+ virtual List<NetUser>& GetUsers();
- virtual NetUser* FindUserBySession(Text id);
+ virtual NetUser* FindUserBySession(Text id);
- virtual void AddChat(NetUser* user, const char* msg);
- ListIter<NetChatEntry> GetChat();
- DWORD GetStartTime() const { return start_time; }
+ virtual void AddChat(NetUser* user, const char* msg);
+ ListIter<NetChatEntry> GetChat();
+ DWORD GetStartTime() const { return start_time; }
- virtual void GameOn() { }
- virtual void GameOff() { }
+ virtual void GameOn() { }
+ virtual void GameOff() { }
- // singleton locator:
- static NetAdminServer* GetInstance(WORD port=0);
+ // singleton locator:
+ static NetAdminServer* GetInstance(WORD port=0);
protected:
- NetAdminServer(WORD port);
- virtual void DoSyncedCheck();
+ NetAdminServer(WORD port);
+ virtual void DoSyncedCheck();
- DWORD start_time;
- List<NetUser> admin_users;
+ DWORD start_time;
+ List<NetUser> admin_users;
};
// +-------------------------------------------------------------------+
@@ -68,24 +68,24 @@ protected: class NetAdminServlet : public HttpServlet
{
public:
- NetAdminServlet();
- virtual ~NetAdminServlet() { }
+ NetAdminServlet();
+ virtual ~NetAdminServlet() { }
- virtual bool DoGet(HttpRequest& request, HttpResponse& response);
- virtual bool CheckUser(HttpRequest& request, HttpResponse& response);
+ virtual bool DoGet(HttpRequest& request, HttpResponse& response);
+ virtual bool CheckUser(HttpRequest& request, HttpResponse& response);
- virtual Text GetCSS();
- virtual Text GetHead(const char* title=0);
- virtual Text GetBody();
- virtual Text GetTitleBar(const char* statline=0, const char* onload=0);
- virtual Text GetStatLine();
- virtual Text GetCopyright();
- virtual Text GetContent();
- virtual Text GetBodyClose();
+ virtual Text GetCSS();
+ virtual Text GetHead(const char* title=0);
+ virtual Text GetBody();
+ virtual Text GetTitleBar(const char* statline=0, const char* onload=0);
+ virtual Text GetStatLine();
+ virtual Text GetCopyright();
+ virtual Text GetContent();
+ virtual Text GetBodyClose();
protected:
- NetAdminServer* admin;
- NetUser* user;
+ NetAdminServer* admin;
+ NetUser* user;
};
#endif NetAdminServer_h
\ No newline at end of file |