BVB Source Codes

CRYENGINE Show RConServerListener.h Source code

Return Download CRYENGINE: download RConServerListener.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    $Id$
  6.    $DateTime$
  7.    Description: IRemoteControlServerListener implementation
  8.    -------------------------------------------------------------------------
  9.    History:
  10.    - Created by Lin Luo, November 08, 2006
  11.    - Refactored by Lin Luo, November 22, 2006
  12. *************************************************************************/
  13.  
  14. #ifndef __RCONSERVERLISTENER_H__
  15. #define __RCONSERVERLISTENER_H__
  16.  
  17. #pragma once
  18.  
  19. class CRConServerListener : public IRemoteControlServerListener, public IOutputPrintSink
  20. {
  21. public:
  22.         static CRConServerListener& GetSingleton(IRemoteControlServer* rcon_server);
  23.         static CRConServerListener& GetSingleton();
  24.  
  25.         void                        Update();
  26.  
  27. private:
  28.         CRConServerListener();
  29.         ~CRConServerListener();
  30.  
  31.         void OnStartResult(bool started, EResultDesc desc);
  32.  
  33.         void OnClientAuthorized(string clientAddr);
  34.  
  35.         void OnAuthorizedClientLeft(string clientAddr);
  36.  
  37.         void OnClientCommand(uint32 commandId, string command);
  38.  
  39.         string m_output;
  40.         void Print(const char* inszText);
  41.  
  42.         typedef std::map<uint32, string> TCommandsMap;
  43.         TCommandsMap                 m_commands;
  44.  
  45.         static CRConServerListener   s_singleton;
  46.         static IRemoteControlServer* s_rcon_server;
  47. };
  48.  
  49. #endif
  50.  
downloadRConServerListener.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top