diff options
Diffstat (limited to 'libtransport/src/hicn/transport/core/packet.cc')
-rw-r--r-- | libtransport/src/hicn/transport/core/packet.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libtransport/src/hicn/transport/core/packet.cc b/libtransport/src/hicn/transport/core/packet.cc index ea9666ff7..c5c2b9796 100644 --- a/libtransport/src/hicn/transport/core/packet.cc +++ b/libtransport/src/hicn/transport/core/packet.cc @@ -140,22 +140,6 @@ std::size_t Packet::headerSize() const { reinterpret_cast<uint8_t *>(packet_start_)); } -void Packet::setLifetime(uint32_t lifetime) { - if (hicn_interest_set_lifetime(packet_start_, lifetime) < 0) { - throw errors::MalformedPacketException(); - } -} - -uint32_t Packet::getLifetime() const { - uint32_t lifetime = 0; - - if (hicn_packet_get_lifetime(packet_start_, &lifetime) < 0) { - throw errors::MalformedPacketException(); - } - - return lifetime; -} - Packet &Packet::appendPayload(std::unique_ptr<utils::MemBuf> &&payload) { separateHeaderPayload(); |