comparison DEPENDENCIES/generic/include/boost/asio/error.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
1 // 1 //
2 // error.hpp 2 // error.hpp
3 // ~~~~~~~~~ 3 // ~~~~~~~~~
4 // 4 //
5 // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 // 6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying 7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 // 9 //
10 10
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 17
18 #include <boost/asio/detail/config.hpp> 18 #include <boost/asio/detail/config.hpp>
19 #include <boost/cerrno.hpp> 19 #include <boost/cerrno.hpp>
20 #include <boost/system/error_code.hpp> 20 #include <boost/system/error_code.hpp>
21 #include <boost/system/system_error.hpp>
21 #if defined(BOOST_ASIO_WINDOWS) \ 22 #if defined(BOOST_ASIO_WINDOWS) \
22 || defined(__CYGWIN__) \ 23 || defined(__CYGWIN__) \
23 || defined(BOOST_ASIO_WINDOWS_RUNTIME) 24 || defined(BOOST_ASIO_WINDOWS_RUNTIME)
24 # include <winerror.h> 25 # include <winerror.h>
25 #else 26 #else
145 BOOST_ASIO_NATIVE_ERROR(EPERM)), 146 BOOST_ASIO_NATIVE_ERROR(EPERM)),
146 147
147 /// Protocol not available. 148 /// Protocol not available.
148 no_protocol_option = BOOST_ASIO_SOCKET_ERROR(ENOPROTOOPT), 149 no_protocol_option = BOOST_ASIO_SOCKET_ERROR(ENOPROTOOPT),
149 150
151 /// No such device.
152 no_such_device = BOOST_ASIO_WIN_OR_POSIX(
153 BOOST_ASIO_NATIVE_ERROR(ERROR_BAD_UNIT),
154 BOOST_ASIO_NATIVE_ERROR(ENODEV)),
155
150 /// Transport endpoint is not connected. 156 /// Transport endpoint is not connected.
151 not_connected = BOOST_ASIO_SOCKET_ERROR(ENOTCONN), 157 not_connected = BOOST_ASIO_SOCKET_ERROR(ENOTCONN),
152 158
153 /// Socket operation on non-socket. 159 /// Socket operation on non-socket.
154 not_socket = BOOST_ASIO_SOCKET_ERROR(ENOTSOCK), 160 not_socket = BOOST_ASIO_SOCKET_ERROR(ENOTSOCK),