9 #include <boost/tokenizer.hpp>
16 using boost::asio::ip::address;
19 typedef boost::tokenizer<boost::char_separator<char> >
tokenizer;
20 boost::char_separator<char> sep(
":");
22 tokenizer tokens(epstr, sep);
23 tokenizer::iterator it = tokens.begin();
26 std::string sport(*it);
29 boost::system::error_code ec;
39 typedef boost::tokenizer<boost::char_separator<char> >
tokenizer;
40 boost::char_separator<char> sep(
":");
42 tokenizer tokens(epstr, sep);
43 tokenizer::iterator it = tokens.begin();
46 std::string sport(*it);
49 boost::system::error_code ec;
bool MakeEndpoint(TcpServer::Endpoint *ep, const std::string &epstr)
boost::asio::ip::udp::endpoint Endpoint
bool stringToInteger(const std::string &str, NumberType &num)
boost::tokenizer< boost::char_separator< char > > tokenizer
IpAddress AddressFromString(const std::string &ip_address_str, boost::system::error_code *ec)
boost::asio::ip::tcp::endpoint Endpoint