| 669 | } |
| 670 | |
| 671 | void 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 | |
| 686 | const char *EncryptedConnection::logHeader() const { |
| 687 | return (_type == Type::Signaling) ? "(signaling) " : "(transport) "; |
nothing calls this directly
no test coverage detected