bool PacketSenderGeneric::generic_response_handler(PDU& rpdu) { if (sent_pdu->matches_response_generic(rpdu)) { response_pdu = rpdu.clone(); return false; } return true; }
void PDU::inner_pdu(const PDU &next_pdu) { inner_pdu(next_pdu.clone()); }
bool PacketCapturer::callback(const PDU& pdu) { storage_.emplace_back(pdu.clone()); return running_; }