| 274 | } |
| 275 | |
| 276 | td::Status TcpConnection::receive_packet(td::BufferSlice data) { |
| 277 | LOG(DEBUG) << "tcp: received packet of size " << data.size(); |
| 278 | if (data.size() == 0) { |
| 279 | // keepalive |
| 280 | return td::Status::OK(); |
| 281 | } |
| 282 | |
| 283 | return process_packet(std::move(data)); |
| 284 | } |
| 285 | |
| 286 | td::Status TcpConnection::process_init_packet(td::BufferSlice data) { |
| 287 | if (is_client_) { |
nothing calls this directly
no outgoing calls
no test coverage detected