| 49 | void OnConnection(const Handle& handle); |
| 50 | |
| 51 | void OnMessage(const Handle& handle, base::CBuffer* data, uint32_t) { |
| 52 | char buff[65535]; |
| 53 | ++_messages_read; |
| 54 | int len_get = data->GetCanReadLength(); |
| 55 | _bytes_read += len_get; |
| 56 | while (data->GetCanReadLength()) { |
| 57 | int ret = data->Read(buff, 65535); |
| 58 | handle->Write(buff, ret); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | Client* _owner; |
| 63 | int64_t _bytes_read; |
nothing calls this directly
no test coverage detected