Boost C++ Libraries: Ticket #10367: kqueue on OSX broke support for read-only file descriptors https://svn.boost.org/trac10/ticket/10367 <p> Prior 1.56, we were successfully using <code>boost::asio::posix::stream_descriptor</code> with libpcap (file descriptor retrieved via <code>pcap_get_selectable_fd</code>). </p> <p> My understanding, that change https_github.com_boostorg_asio_commit_660e9fe30204e0ada0d1fd40c48015810d2647dc (replace _ with /) required all file-descriptors to be both readable and writeable (e.g., register_descriptor always registers EVFILT_READ and EVFILT_WRITE events). </p> <p> In the case of libpcap, the file descriptor only works in one direction (read) and attempt to register EVFILT_WRITE event results in <code>assign: Invalid argument</code> error. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10367 Trac 1.4.3 Antony Polukhin Fri, 22 Aug 2014 13:58:27 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10367#comment:1 https://svn.boost.org/trac10/ticket/10367#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket