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

Method FormatKmMessage

srtcore/crypto.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98#if ENABLE_LOGGING
99std::string srt::CCryptoControl::FormatKmMessage(std::string hdr, int cmd, size_t srtlen)
100{
101 std::ostringstream os;
102 os << hdr << ": cmd=" << cmd << "(" << (cmd == SRT_CMD_KMREQ ? "KMREQ":"KMRSP") <<") len="
103 << size_t(srtlen*sizeof(int32_t)) << " KmState: SND="
104 << KmStateStr(m_SndKmState)
105 << " RCV=" << KmStateStr(m_RcvKmState);
106 return os.str();
107}
108#endif
109
110void srt::CCryptoControl::updateKmState(int cmd, size_t srtlen SRT_ATR_UNUSED)

Callers

nothing calls this directly

Calls 2

KmStateStrFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected