[Boost-bugs] [Boost C++ Libraries] #2875: Windows: ip::tcp::acceptor::local_endpoint() cannot be used in socket connect

Subject: [Boost-bugs] [Boost C++ Libraries] #2875: Windows: ip::tcp::acceptor::local_endpoint() cannot be used in socket connect
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-20 06:19:50


#2875: Windows: ip::tcp::acceptor::local_endpoint() cannot be used in socket
connect
--------------------------------------------------------+-------------------
 Reporter: Benjamin Carlyle <ben.carlyle_at_[hidden]> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: asio
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
--------------------------------------------------------+-------------------
 On linux the local_endpoint() function returns an endpoint similar to
 0.0.0.0:1234. A socket which is given this endpoint to connect to will
 connect successfully. A similar endpoint is returned on Windows, however
 the socket connection is not successful.

 I am currently working around this problem by inserting loopback as the
 address to connect to. For the sake of consistency between platforms it
 may be worthwhile including a similar substitution within the socket's
 connect operation if 0.0.0.0 is detected.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2875>
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:49:59 UTC