Re: [Boost-bugs] [Boost C++ Libraries] #7302: Accepted socket local_endpoint() method and peer end point after boost::asio::ip::tcp::acceptor::accept() produces an IPv6 address when a client connected using an IPv4 address.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7302: Accepted socket local_endpoint() method and peer end point after boost::asio::ip::tcp::acceptor::accept() produces an IPv6 address when a client connected using an IPv4 address.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-29 10:16:41


#7302: Accepted socket local_endpoint() method and peer end point after
boost::asio::ip::tcp::acceptor::accept() produces an IPv6 address when a
client connected using an IPv4 address.
----------------------------------------------------+-----------------------
  Reporter: Radboud Platvoet <radboudp@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.49.0 | Severity: Showstopper
Resolution: invalid | Keywords: local_endpoint address_v6 address_v4
----------------------------------------------------+-----------------------
Changes (by chris_kohlhoff):

  * status: new => closed
  * resolution: => invalid

Comment:

 IPv6-bound acceptors will always return IPv6-based remote endpoints.
 However, in this case the address is an IPv4-mapped IPv6 address. Use
 address_v6::is_v4_mapped() to test for this and use address_v6::to_v4() to
 extract the underlying IPv4 address.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7302#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC