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

Method AutoMap

srtcore/common.cpp:544–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542 std::string names[int(SRTS_NONEXIST)-1+1];
543
544 AutoMap()
545 {
546#define SINI(statename) names[SRTS_##statename-1] = #statename
547 SINI(INIT);
548 SINI(OPENED);
549 SINI(LISTENING);
550 SINI(CONNECTING);
551 SINI(CONNECTED);
552 SINI(BROKEN);
553 SINI(CLOSING);
554 SINI(CLOSED);
555 SINI(NONEXIST);
556#undef SINI
557 }
558 } names;
559
560 return names.names[int(s)-1];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected