summaryrefslogtreecommitdiff
path: root/src/third_party/asio-master/asio/include/asio/socket_base.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/asio-master/asio/include/asio/socket_base.hpp')
-rw-r--r--src/third_party/asio-master/asio/include/asio/socket_base.hpp36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/third_party/asio-master/asio/include/asio/socket_base.hpp b/src/third_party/asio-master/asio/include/asio/socket_base.hpp
index 99ef3779af0..aa78b55e04a 100644
--- a/src/third_party/asio-master/asio/include/asio/socket_base.hpp
+++ b/src/third_party/asio-master/asio/include/asio/socket_base.hpp
@@ -2,7 +2,7 @@
// socket_base.hpp
// ~~~~~~~~~~~~~~~
//
-// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -432,6 +432,40 @@ public:
linger;
#endif
+ /// Socket option for putting received out-of-band data inline.
+ /**
+ * Implements the SOL_SOCKET/SO_OOBINLINE socket option.
+ *
+ * @par Examples
+ * Setting the option:
+ * @code
+ * asio::ip::tcp::socket socket(io_context);
+ * ...
+ * asio::socket_base::out_of_band_inline option(true);
+ * socket.set_option(option);
+ * @endcode
+ *
+ * @par
+ * Getting the current option value:
+ * @code
+ * asio::ip::tcp::socket socket(io_context);
+ * ...
+ * asio::socket_base::out_of_band_inline option;
+ * socket.get_option(option);
+ * bool value = option.value();
+ * @endcode
+ *
+ * @par Concepts:
+ * Socket_Option, Boolean_Socket_Option.
+ */
+#if defined(GENERATING_DOCUMENTATION)
+ typedef implementation_defined out_of_band_inline;
+#else
+ typedef asio::detail::socket_option::boolean<
+ ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_OOBINLINE)>
+ out_of_band_inline;
+#endif
+
/// Socket option to report aborted connections on accept.
/**
* Implements a custom socket option that determines whether or not an accept