SLikeNet 0.1.3

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConsoleServer.h
Go to the documentation of this file.
1 /*
2 * Original work: Copyright (c) 2014, Oculus VR, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * RakNet License.txt file in the licenses directory of this source tree. An additional grant
7 * of patent rights can be found in the RakNet Patents.txt file in the same directory.
8 *
9 *
10 * Modified work: Copyright (c) 2017, SLikeSoft UG (haftungsbeschränkt)
11 *
12 * This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
13 * license found in the license.txt file in the root directory of this source tree.
14 */
15
19
20
21 #include "NativeFeatureIncludes.h"
22 #if _RAKNET_SUPPORT_ConsoleServer==1
23
24 #ifndef __CONSOLE_SERVER_H
25 #define __CONSOLE_SERVER_H
26
27 #include "memoryoverride.h"
28 #include "DS_List.h"
29 #include "types.h"
30 #include "Export.h"
31
32 namespace SLNet
33 {
35 class TransportInterface;
36 class CommandParserInterface;
37
38
44 class RAK_DLL_EXPORT ConsoleServer
45 {
46 public:
47 // GetInstance() and DestroyInstance(instance*)
48 STATIC_FACTORY_DECLARATIONS(ConsoleServer)
49
50 ConsoleServer();
51 ~ConsoleServer();
52
56 void SetTransportProvider(TransportInterface *transportInterface, unsigned short port);
57
60 void AddCommandParser(CommandParserInterface *commandParserInterface);
61
64 void RemoveCommandParser(CommandParserInterface *commandParserInterface);
65
68 void Update(void);
69
74 void SetPrompt(const char *_prompt);
75
76 protected:
77 void ListParsers(SystemAddress systemAddress);
78 void ShowPrompt(SystemAddress systemAddress);
79 TransportInterface *transport;
80 DataStructures::List<CommandParserInterface *> commandParserList;
81 char* password[256];
82 char *prompt;
83 };
84
85 } // namespace SLNet
86
87 #endif
88
89 #endif // _RAKNET_SUPPORT_*