linux版本中间件

VideoExtenHdl.h 654B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <map>
  3. #include <mutex>
  4. #include <websocketpp/connection.hpp>
  5. class CVideoExtenHdl
  6. {
  7. public:
  8. CVideoExtenHdl() {};
  9. ~CVideoExtenHdl() {};
  10. bool add(uint32_t&exten,std::string&agent, websocketpp::connection_hdl hdl);
  11. bool bindReqAgentExten(const uint32_t&exten, uint32_t& agentExten);
  12. std::pair<uint32_t, uint32_t> del(websocketpp::connection_hdl hdl);
  13. void del(uint32_t&exten);
  14. void del(std::string&agent);
  15. private:
  16. std::map<uint32_t, std::string> m_ExtenAgent;
  17. std::map<uint32_t, websocketpp::connection_hdl> m_ExtenHdl;
  18. std::map<uint32_t, uint32_t> m_ExtenBindReqAgentExten; // °ó¶¨ÇëÇóµ½µÄ×øÏ¯·Ö»ú
  19. std::mutex mut;
  20. };