MCPcopy Create free account
hub / github.com/Haivision/srt / PacketMessageFlagStr

Function PacketMessageFlagStr

srtcore/packet.cpp:560–577  ·  view source on GitHub ↗

Useful for debugging

Source from the content-addressed store, hash-verified

558
559// Useful for debugging
560std::string PacketMessageFlagStr(uint32_t msgno_field)
561{
562 using namespace std;
563
564 stringstream out;
565
566 static const char* const boundary[] = {"PB_SUBSEQUENT", "PB_LAST", "PB_FIRST", "PB_SOLO"};
567 static const char* const order[] = {"ORD_RELAXED", "ORD_REQUIRED"};
568 static const char* const crypto[] = {"EK_NOENC", "EK_EVEN", "EK_ODD", "EK*ERROR"};
569 static const char* const rexmit[] = {"SN_ORIGINAL", "SN_REXMIT"};
570
571 out << boundary[MSGNO_PACKET_BOUNDARY::unwrap(msgno_field)] << " ";
572 out << order[MSGNO_PACKET_INORDER::unwrap(msgno_field)] << " ";
573 out << crypto[MSGNO_ENCKEYSPEC::unwrap(msgno_field)] << " ";
574 out << rexmit[MSGNO_REXMIT::unwrap(msgno_field)];
575
576 return out.str();
577}
578
579inline void SprintSpecialWord(std::ostream& os, int32_t val)
580{

Callers 2

RcvRebuildMethod · 0.85
MessageFlagStrMethod · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected