
00001 00002 00003 00004 00005 00006 00007 00008 00009 #ifndef __CONSOLE_SERVER_H 00010 #define __CONSOLE_SERVER_H 00011 00012 class TransportInterface; 00013 class CommandParserInterface; 00014 00015 #include "RakMemoryOverride.h" 00016 #include "DS_List.h" 00017 #include "RakNetTypes.h" 00018 #include "Export.h" 00019 00025 class RAK_DLL_EXPORT ConsoleServer 00026 { 00027 public: 00028 ConsoleServer(); 00029 ~ConsoleServer(); 00030 00034 void SetTransportProvider(TransportInterface *transportInterface, unsigned short port); 00035 00038 void AddCommandParser(CommandParserInterface *commandParserInterface); 00039 00042 void RemoveCommandParser(CommandParserInterface *commandParserInterface); 00043 00046 void Update(void); 00047 00052 void SetPrompt(const char *_prompt); 00053 00054 protected: 00055 void ListParsers(SystemAddress systemAddress); 00056 void ShowPrompt(SystemAddress systemAddress); 00057 TransportInterface *transport; 00058 DataStructures::List<CommandParserInterface *> commandParserList; 00059 char* password[256]; 00060 char *prompt; 00061 }; 00062 00063 #endif
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.