BVB Source Codes

CRYENGINE Show SimpleHttpServerListener.h Source code

Return Download CRYENGINE: download SimpleHttpServerListener.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __SIMPLEHTTPSERVERLISTENER_H__
  4. #define __SIMPLEHTTPSERVERLISTENER_H__
  5.  
  6. #pragma once
  7.  
  8. class CSimpleHttpServerListener : public IHttpServerListener, public IOutputPrintSink
  9. {
  10. public:
  11.         static CSimpleHttpServerListener& GetSingleton(ISimpleHttpServer* http_server);
  12.         static CSimpleHttpServerListener& GetSingleton();
  13.  
  14.         void                              Update();
  15.  
  16. private:
  17.         CSimpleHttpServerListener();
  18.         ~CSimpleHttpServerListener();
  19.  
  20.         void OnStartResult(bool started, EResultDesc desc);
  21.  
  22.         void OnClientConnected(int connectionID, string client);
  23.         void OnClientDisconnected(int connectionID);
  24.  
  25.         void OnGetRequest(int connectionID, string url);
  26.         void OnRpcRequest(int connectionID, string xml);
  27.  
  28.         string m_output;
  29.         void Print(const char* inszText);
  30.  
  31.         typedef std::deque<string> TCommandsVec;
  32.         TCommandsVec m_commands;
  33.  
  34.         enum EAuthorizationState {eAS_Disconnected, eAS_WaitChallengeRequest, eAS_WaitAuthenticationRequest, eAS_Authorized};
  35.         EAuthorizationState              m_state;
  36.         int                              m_connectionID;
  37.  
  38.         string                           m_client; // current session client
  39.         string                           m_challenge;
  40.  
  41.         static CSimpleHttpServerListener s_singleton;
  42.         static ISimpleHttpServer*        s_http_server;
  43. };
  44.  
  45. #endif
  46.  
downloadSimpleHttpServerListener.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