| 1072 | } |
| 1073 | |
| 1074 | EndPoint::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 | |
| 1083 | EndPoint EndPoint::parse(std::string_view s, uint16_t default_port) { |
| 1084 | if (s.empty()) return {}; |
nothing calls this directly
no test coverage detected