diff --git a/srt/Packet.cpp b/srt/Packet.cpp index 3cf40584..085c56a0 100644 --- a/srt/Packet.cpp +++ b/srt/Packet.cpp @@ -89,6 +89,7 @@ bool DataPacket::storeToHeader(){ storeUint32(ptr, dst_socket_id); ptr += 4; + return true; } bool DataPacket::storeToData(uint8_t *buf, size_t len) { _data = BufferRaw::create(); diff --git a/srt/Packet.hpp b/srt/Packet.hpp index b34aae29..2118113d 100644 --- a/srt/Packet.hpp +++ b/srt/Packet.hpp @@ -314,6 +314,22 @@ class MsgDropReqPacket : public ControlPacket uint32_t last_pkt_seq_num; }; +/* + 0 1 2 3 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 ++-+-+-+-+-+-+-+-+-+-+-+-+- SRT Header +-+-+-+-+-+-+-+-+-+-+-+-+-+ +|1| Control Type | Reserved | ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +| Type-specific Information | ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +| Timestamp | ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +| Destination Socket ID | ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + Figure 16: Shutdown control packet + https://haivision.github.io/srt-rfc/draft-sharabayko-srt.html#name-shutdown + +*/ class ShutDownPacket : public ControlPacket { public: