MCPcopy Create free account
hub / github.com/TelegramMessenger/tgcalls / appendReceivedRawMessage

Method appendReceivedRawMessage

tgcalls/EncryptedConnection.cpp:671–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669}
670
671void EncryptedConnection::appendReceivedRawMessage(
672 absl::optional<DecryptedRawPacket> &to,
673 rtc::CopyOnWriteBuffer &&message,
674 uint32_t incomingSeq) {
675 auto decrypted = DecryptedRawMessage{
676 std::move(message),
677 CounterFromSeq(incomingSeq)
678 };
679 if (to) {
680 to->additional.push_back(std::move(decrypted));
681 } else {
682 to = DecryptedRawPacket{ std::move(decrypted) };
683 }
684}
685
686const char *EncryptedConnection::logHeader() const {
687 return (_type == Type::Signaling) ? "(signaling) " : "(transport) ";

Callers

nothing calls this directly

Calls 1

CounterFromSeqFunction · 0.85

Tested by

no test coverage detected