| 17 | } |
| 18 | |
| 19 | void CHttpServer::OnConnection(const cppnet::Handle& handle, uint32_t err) { |
| 20 | if (err == CEC_SUCCESS) { |
| 21 | std::unique_lock<std::mutex> lock(_mutex); |
| 22 | if (_context_map.find(handle) == _context_map.end()) { |
| 23 | _context_map[handle] = CHttpContext(); |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | void CHttpServer::OnMessage(const cppnet::Handle& handle, base::CBuffer* data, |
| 29 | uint32_t, uint32_t err) { |
nothing calls this directly
no test coverage detected