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

Function MemberStatusStr

srtcore/common.cpp:564–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562
563#if ENABLE_BONDING
564std::string MemberStatusStr(SRT_MEMBERSTATUS s)
565{
566 if (int(s) < int(SRT_GST_PENDING) || int(s) > int(SRT_GST_BROKEN))
567 return "???";
568
569 static struct AutoMap
570 {
571 std::string names[int(SRT_GST_BROKEN)+1];
572
573 AutoMap()
574 {
575#define SINI(statename) names[SRT_GST_##statename] = #statename
576 SINI(PENDING);
577 SINI(IDLE);
578 SINI(RUNNING);
579 SINI(BROKEN);
580#undef SINI
581 }
582 } names;
583
584 return names.names[int(s)];
585}
586#endif
587
588

Callers 2

TESTFunction · 0.85
UpdateGroupStatusMethod · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
UpdateGroupStatusMethod · 0.68