You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __PROTOCOL_PROXY_HTTP_STREAM_HEADER__
  2. #define __PROTOCOL_PROXY_HTTP_STREAM_HEADER__
  3. #include "../net/clientPort.h"
  4. #include "../net/netClientHandler.h"
  5. #include "../../components/base/basicTransport.h"
  6. #include "../../components/base/basicSettingsProvider.h"
  7. /**
  8. * TODO: Add class description
  9. *
  10. * @author gagua
  11. */
  12. class protocolProxyStreamHTTP : public networkClientHandler {
  13. private:
  14. bool m_bStreamingActive;
  15. CSTR m_pRequestedURL;
  16. CSTR m_pRequestedHost;
  17. int m_pRequestedPort;
  18. protected:
  19. basicLogCollection * m_pLog;
  20. clientPort * m_oDataTransport;
  21. virtual int packetChecker(unsigned char *Buffer, size_t BufferSize);
  22. virtual protocolPackage * packetExtractor(unsigned char *Buffer, size_t BufferSize);
  23. virtual bool packetHandler( protocolPackage *Package );
  24. public:
  25. // Constructor
  26. explicit protocolProxyStreamHTTP(SOCKET SocketFD, config_setting_t *Settings = NULL);
  27. //ToDo: change Serial to BaseClass of some kind of socket
  28. // protocolHTTP( clientPort *SocketTransport, config_setting_t *Settings = NULL );
  29. // Destructor
  30. virtual ~protocolProxyStreamHTTP();
  31. };
  32. #endif