1968 const size_t p0 = base.find_first_of(
':');
1969 const size_t p1 = base.find_last_of(
':');
1971 if (p0==string::npos || p0!=p1)
1973 T::Out() <<
kRed <<
"GetEndpoint - Wrong format ('host:port' expected)" << endl;
1974 return tcp::endpoint();
1979 boost::system::error_code ec;
1981 const tcp::resolver::query query(base.substr(0, p0), base.substr(p0+1));
1982 const tcp::resolver::iterator iterator = resolver.resolve(query, ec);
1986 T::Out() <<
kRed <<
"GetEndpoint - Couldn't resolve endpoint '" << base <<
"': " << ec.message();
1987 return tcp::endpoint();