| 628 | |
| 629 | #ifndef NDEBUG |
| 630 | std::string Packet::debugString() const { |
| 631 | if (!_object) { |
| 632 | return ""; |
| 633 | } |
| 634 | if (_object->_packed) { |
| 635 | //unpack(); |
| 636 | } |
| 637 | std::string str; |
| 638 | str = "ht=" + std::to_string(_object->_header_type); |
| 639 | str += " tt=" + std::to_string(_object->_transport_type); |
| 640 | str += " dt=" + std::to_string(_object->_destination_type); |
| 641 | str += " pt=" + std::to_string(_object->_packet_type); |
| 642 | str += " hp=" + std::to_string(_object->_hops); |
| 643 | str += " ti=" + _object->_transport_id.toHex(); |
| 644 | str += " dh=" + _object->_destination_hash.toHex(); |
| 645 | str += " ph=" + _object->_packet_hash.toHex(); |
| 646 | return str; |
| 647 | } |
| 648 | std::string Packet::dumpString() const { |
| 649 | if (!_object) { |
| 650 | return ""; |