MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / af_from_enum_string

Function af_from_enum_string

src/network.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 af_e af_from_enum_string(const std::string_view &view) {
97 if (view == "ipv4") {
98 return IPV4;
99 }
100 if (view == "both") {
101 return BOTH;
102 }
103
104 // avoid warning
105 return BOTH;
106 }
107
108 std::string_view af_to_any_address_string(af_e af) {
109 switch (af) {

Callers 5

start_broadcastFunction · 0.85
startFunction · 0.85
startFunction · 0.85
upnp_thread_procMethod · 0.85
startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected