///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 46 | |
| 47 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 48 | void FSecure::C3::Core::DeviceBridge::PassNetworkPacket(ByteView packet) |
| 49 | { |
| 50 | if (m_IsNegotiationChannel && !m_IsSlave) // negotiation channel does not support chunking. Just pass packet and leave. |
| 51 | return GetRelay()->OnPacketReceived(packet, shared_from_this()); |
| 52 | |
| 53 | m_QoS.PushReceivedChunk(packet); |
| 54 | auto nextPacket = m_QoS.GetNextPacket(); |
| 55 | if (!nextPacket.empty()) |
| 56 | GetRelay()->OnPacketReceived(nextPacket, shared_from_this()); |
| 57 | } |
| 58 | |
| 59 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 60 | void FSecure::C3::Core::DeviceBridge::OnPassNetworkPacket(ByteView packet) |
no test coverage detected