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.

42 lines
1.2 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __PROTOCOL_ZL_MEDIASERVER_REST_HEADER__
  2. #define __PROTOCOL_ZL_MEDIASERVER_REST_HEADER__
  3. #ifdef __linux__
  4. #include <features.h>
  5. #endif
  6. #include "protocolHTTP.h"
  7. #include <time.h>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <sys/types.h>
  11. #include <sys/timeb.h>
  12. #include <string>
  13. #include "../../components/base/basicFunctionality.h"
  14. #include "../../components/base/basicLogCollection.h"
  15. #include "../../components/base/basicSettingsProvider.h"
  16. class protocolZLMEDIA : public protocolHTTP {
  17. private:
  18. basicLogCollection * m_pLog;
  19. config_setting_t * m_pSettings;
  20. char m_pSecret[256];
  21. char m_pAccessPoint[256];
  22. char m_pIP[16];
  23. bool m_bSessionOnGo;
  24. bool m_bServerIsPresent;
  25. bool m_bUseSSL;
  26. uint16_t m_nPort;
  27. protected:
  28. virtual bool packetHandler( protocolPackage *Package );
  29. public:
  30. explicit protocolZLMEDIA( config_setting_t *Settings = NULL );
  31. ~protocolZLMEDIA();
  32. bool isOnline();
  33. };
  34. #endif