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

Method send_query_answer

net/TcpClient.hpp:272–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 }
271 }
272 void send_query_answer(ConnectionId connection_id, td::int64 query_id, td::BufferSlice data) {
273 auto it = active_connections_.find(connection_id);
274 if (it != active_connections_.end()) {
275 td::actor::send_closure(it->second.connection, &TcpClientConnection::send_query_answer, query_id,
276 std::move(data));
277 }
278 }
279 void send_query_answer_error(ConnectionId connection_id, td::int64 query_id, td::Status error) {
280 auto it = active_connections_.find(connection_id);
281 if (it != active_connections_.end()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected