Shadowrun: Awakened 29 September 2011 - Build 871
ConsoleServer.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 #include "NativeFeatureIncludes.h"
00010 #if _RAKNET_SUPPORT_ConsoleServer==1
00011 
00012 #ifndef __CONSOLE_SERVER_H
00013 #define __CONSOLE_SERVER_H
00014 
00015 #include "RakMemoryOverride.h"
00016 #include "DS_List.h"
00017 #include "RakNetTypes.h"
00018 #include "Export.h"
00019 
00020 namespace RakNet
00021 {
00023 class TransportInterface;
00024 class CommandParserInterface;
00025 
00026 
00032 class RAK_DLL_EXPORT ConsoleServer
00033 {
00034 public:
00035     // GetInstance() and DestroyInstance(instance*)
00036     STATIC_FACTORY_DECLARATIONS(ConsoleServer)
00037 
00038     ConsoleServer();
00039     ~ConsoleServer();
00040 
00044     void SetTransportProvider(TransportInterface *transportInterface, unsigned short port);
00045 
00048     void AddCommandParser(CommandParserInterface *commandParserInterface);
00049 
00052     void RemoveCommandParser(CommandParserInterface *commandParserInterface);
00053 
00056     void Update(void);
00057 
00062     void SetPrompt(const char *_prompt);
00063 
00064 protected:
00065     void ListParsers(SystemAddress systemAddress);
00066     void ShowPrompt(SystemAddress systemAddress);
00067     TransportInterface *transport;
00068     DataStructures::List<CommandParserInterface *> commandParserList;
00069     char* password[256];
00070     char *prompt;
00071 };
00072 
00073 } // namespace RakNet
00074 
00075 #endif
00076 
00077 #endif // _RAKNET_SUPPORT_*

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net