Re: [Boost-bugs] [Boost C++ Libraries] #12316: ASIO: "Undefined error: 0" on the Mac OS 10.10 and 10.11

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12316: ASIO: "Undefined error: 0" on the Mac OS 10.10 and 10.11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-23 10:45:41


#12316: ASIO: "Undefined error: 0" on the Mac OS 10.10 and 10.11
---------------------------------------+----------------------------
  Reporter: David Dovodov <ddovod@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.61.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------+----------------------------

Comment (by David Dovodov <ddovod@…>):

 Update:
 examples works fine, sorry, my bad. Assuming there's somebody who is
 listening 8888 port on the localhost. The code below works bad on iOS/mac
 os:
     std::string m_address = "127.0.0.1";
     int m_port = 8888;
     asio::io_service m_service;
     asio::ip::tcp::socket m_socket(m_service);
     asio::ip::tcp::endpoint ep(asio::ip::address::from_string(m_address),
 m_port);
     m_socket.async_connect(ep, [] (const asio::error_code& err) {
         std::cout << "onConnect -> " << err.message() << std::endl;
     });
     m_service.run();

 Output on a Debian:
 onConnect -> Success

 Output on a Mac OS:
 onConnect -> Undefined error: 0

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12316#comment:4>
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:20 UTC