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

Method read_loop

tdport/td/net/SslStream.cpp:420–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 }
419}
420td::Status SslStreamHelper::read_loop() {
421 if (ssl_stream_) {
422 //ssl_stream_.read_byte_flow().set_need_size(0);
423 ssl_stream_.write_byte_flow().reset_need_size();
424 }
425 read_source_.wakeup();
426 if (read_sink_.status().is_error()) {
427 return std::move(read_sink_.status());
428 }
429 return Status::OK();
430}
431td::Status SslStreamHelper::write_loop() {
432 write_source_.wakeup();
433 if (write_sink_.status().is_error()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected