32 if (
pos == string::npos) {
39 if (
node.size() >= 2 &&
node.front() ==
'[' &&
node.back() ==
']') {
47 const auto pos =
uri.find(
"://");
49 if (
pos == string::npos) {
61 int family{-1}, protocol{0};
65 }
else if (
scheme ==
"ip4") {
67 }
else if (
scheme ==
"ip6") {
69 }
else if (
scheme ==
"tcp4") {
74 }
else if (
scheme ==
"tcp6") {
79 }
else if (
scheme ==
"udp4") {
84 }
else if (
scheme ==
"udp6") {
89 }
else if (
scheme ==
"unix") {
97 !
service.empty() ?
service.c_str() :
nullptr, family, type, protocol);