42 m_has_terminated(
false),
49 bool is_preview =
false,
50 bool has_terminated =
false,
56 m_is_preview(is_preview),
57 m_has_terminated(has_terminated),
62 const std::string Source()
const {
return m_source; }
63 uint8_t Priority()
const {
return m_priority; }
64 uint8_t Sequence()
const {
return m_sequence; }
65 uint16_t
Universe()
const {
return m_universe; }
66 bool PreviewData()
const {
return m_is_preview; }
67 bool StreamTerminated()
const {
return m_has_terminated; }
69 bool UsingRev2()
const {
return m_is_rev2; }
71 bool operator==(
const E131Header &other)
const {
72 return m_source == other.m_source &&
73 m_priority == other.m_priority &&
74 m_sequence == other.m_sequence &&
75 m_universe == other.m_universe &&
76 m_is_preview == other.m_is_preview &&
77 m_has_terminated == other.m_has_terminated &&
78 m_is_rev2 == other.m_is_rev2;
81 enum { SOURCE_NAME_LEN = 64 };
84 struct e131_pdu_header_s {
85 char source[SOURCE_NAME_LEN];
92 typedef struct e131_pdu_header_s e131_pdu_header;
94 static const uint8_t PREVIEW_DATA_MASK = 0x80;
95 static const uint8_t STREAM_TERMINATED_MASK = 0x40;
103 bool m_has_terminated;