Quantcast

how can I use ipv6 on boost::asio

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

how can I use ipv6 on boost::asio

Boost - Dev mailing list
Hi

I can connect through IPV4 when I open the socket by following method.

  _socket->open(boost::asio::ip::tcp::v4());

But , it can't use IPV6 network. I'd like to use my app on IPV6 network.

How can I use IPV6 on boost:asio ?
Dies anyone  tell me the method of it ?

best regards

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how can I use ipv6 on boost::asio

Boost - Dev mailing list
On Sat, Mar 11, 2017 at 3:18 AM, Kazuaki Okimoto via Boost
<[hidden email]> wrote:
>   _socket->open(boost::asio::ip::tcp::v4());
>
> But , it can't use IPV6 network. I'd like to use my app on IPV6 network.

Hmm...maybe this will help you make forward progress:

_socket->open(boost::asio::ip::tcp::v6()); // 'v6'

Thanks

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Loading...