MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / EndPoint

Method EndPoint

net/kernel_socket.cpp:1074–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072}
1073
1074EndPoint::EndPoint(const char* s_) {
1075 estring_view s(s_);
1076 if (s.empty()) return;
1077 int port_ = parse_port(s);
1078 if (port_ < 0) return;
1079 port = (uint16_t)port_;
1080 parse_addr(s, &addr);
1081}
1082
1083EndPoint EndPoint::parse(std::string_view s, uint16_t default_port) {
1084 if (s.empty()) return {};

Callers

nothing calls this directly

Calls 3

parse_portFunction · 0.85
parse_addrFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected