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

Function from_enum_string

src/network.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 };
38
39 net_e from_enum_string(const std::string_view &view) {
40 if (view == "wan") {
41 return WAN;
42 }
43 if (view == "lan") {
44 return LAN;
45 }
46
47 return PC;
48 }
49
50 net_e from_address(const std::string_view &view) {
51 auto addr = normalize_address(ip::make_address(view));

Callers 2

deinit_tMethod · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected