| 1234567891011121314151617181920212223242526 |
- #pragma once
- #include <map>
- #include <mutex>
- #include <websocketpp/connection.hpp>
- class CVideoExtenHdl
- {
- public:
- CVideoExtenHdl() {};
- ~CVideoExtenHdl() {};
- bool add(uint32_t&exten,std::string&agent, websocketpp::connection_hdl hdl);
- bool bindReqAgentExten(const uint32_t&exten, uint32_t& agentExten);
- std::pair<uint32_t, uint32_t> del(websocketpp::connection_hdl hdl);
- void del(uint32_t&exten);
- void del(std::string&agent);
- private:
- std::map<uint32_t, std::string> m_ExtenAgent;
- std::map<uint32_t, websocketpp::connection_hdl> m_ExtenHdl;
- std::map<uint32_t, uint32_t> m_ExtenBindReqAgentExten; // °ó¶¨ÇëÇóµ½µÄ×øÏ¯·Ö»ú
- std::mutex mut;
- };
|