MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / getChannelModeString

Function getChannelModeString

edrav2/iprj/libcore/src/jsonrpc.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42//
43//
44const char* getChannelModeString(ChannelMode mode)
45{
46 switch (mode)
47 {
48 case ChannelMode::Invalid: return c_sInvalid;
49 case ChannelMode::Plain: return c_sPlain;
50 case ChannelMode::Encrypted: return c_sEncrypted;
51 case ChannelMode::Both: return c_sBoth;
52 }
53 error::InvalidArgument(SL, FMT("Channel mode <" <<
54 +(std::uint8_t)mode << "> has no text string")).throwException();
55}
56
57//
58//

Callers 3

finalConstructMethod · 0.85
HandleMethodCallMethod · 0.85
finalConstructMethod · 0.85

Calls 1

throwExceptionMethod · 0.80

Tested by

no test coverage detected