10 #include <boost/tokenizer.hpp>
17 using boost::asio::ip::address;
20 typedef boost::tokenizer<boost::char_separator<char> >
tokenizer;
21 boost::char_separator<char> sep(
":");
24 tokenizer::iterator it = tokens.begin();
27 std::string sport(*it);
30 boost::system::error_code ec;
40 typedef boost::tokenizer<boost::char_separator<char> >
tokenizer;
41 boost::char_separator<char> sep(
":");
44 tokenizer::iterator it = tokens.begin();
47 std::string sport(*it);
50 boost::system::error_code ec;
IpAddress AddressFromString(const std::string &ip_address_str, boost::system::error_code *ec)
boost::asio::ip::tcp::endpoint Endpoint
boost::asio::ip::udp::endpoint Endpoint
bool MakeEndpoint(TcpServer::Endpoint *ep, const std::string &epstr)
bool stringToInteger(const std::string &str, NumberType &num)
boost::tokenizer< boost::char_separator< char > > tokenizer