| 25 | static std::atomic_int count; |
| 26 | |
| 27 | void OnConnection(const Handle& handle, uint32_t error) { |
| 28 | |
| 29 | count++; |
| 30 | if (error == CEC_SUCCESS) { |
| 31 | std::cout << " accept a socket. count: " << count << std::endl; |
| 32 | //SetNoDelay(handle); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | void OnMessage(const Handle& handle, base::CBuffer* data, uint32_t, uint32_t error) { |
| 37 | char buff[65535]; |
nothing calls this directly
no outgoing calls
no test coverage detected