IOS boost asio connect from ipv6 network
You can iterate through the endpoints to find an IPv6 endpoint using the code below:
endpoint_iter_ = resolver_.resolve(tcp::resolver::query(ip.c_str(),strstream.str()));while (endpoint_iter_ != tcp::resolver::iterator()){ if (endpoint_iter_->endpoint().protocol() == tcp::v6()) break; ++endpoint_iter_;}if (endpoint_iter_ != tcp::resolver::iterator()){ start_connect(endpoint_iter_); ...}else std::cerr << "IPv6 host not found" << std::endl;