MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / receive_packet

Method receive_packet

net/TcpConnection.cpp:276–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276td::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
286td::Status TcpConnection::process_init_packet(td::BufferSlice data) {
287 if (is_client_) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected