diff options
Diffstat (limited to '3rdparty/asio/include/asio/socket_base.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/socket_base.hpp | 82 |
1 files changed, 58 insertions, 24 deletions
diff --git a/3rdparty/asio/include/asio/socket_base.hpp b/3rdparty/asio/include/asio/socket_base.hpp index 99ef3779af0..5d509790d3d 100644 --- a/3rdparty/asio/include/asio/socket_base.hpp +++ b/3rdparty/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-2024 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) @@ -98,7 +98,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::udp::socket socket(io_context); + * asio::ip::udp::socket socket(my_context); * ... * asio::socket_base::broadcast option(true); * socket.set_option(option); @@ -107,7 +107,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::udp::socket socket(io_context); + * asio::ip::udp::socket socket(my_context); * ... * asio::socket_base::broadcast option; * socket.get_option(option); @@ -132,7 +132,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::debug option(true); * socket.set_option(option); @@ -141,7 +141,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::debug option; * socket.get_option(option); @@ -165,7 +165,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::udp::socket socket(io_context); + * asio::ip::udp::socket socket(my_context); * ... * asio::socket_base::do_not_route option(true); * socket.set_option(option); @@ -174,7 +174,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::udp::socket socket(io_context); + * asio::ip::udp::socket socket(my_context); * ... * asio::socket_base::do_not_route option; * socket.get_option(option); @@ -199,7 +199,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::keep_alive option(true); * socket.set_option(option); @@ -208,7 +208,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::keep_alive option; * socket.get_option(option); @@ -232,7 +232,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::send_buffer_size option(8192); * socket.set_option(option); @@ -241,7 +241,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::send_buffer_size option; * socket.get_option(option); @@ -266,7 +266,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::send_low_watermark option(1024); * socket.set_option(option); @@ -275,7 +275,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::send_low_watermark option; * socket.get_option(option); @@ -300,7 +300,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::receive_buffer_size option(8192); * socket.set_option(option); @@ -309,7 +309,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::receive_buffer_size option; * socket.get_option(option); @@ -334,7 +334,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::receive_low_watermark option(1024); * socket.set_option(option); @@ -343,7 +343,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::receive_low_watermark option; * socket.get_option(option); @@ -369,7 +369,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::tcp::acceptor acceptor(io_context); + * asio::ip::tcp::acceptor acceptor(my_context); * ... * asio::socket_base::reuse_address option(true); * acceptor.set_option(option); @@ -378,7 +378,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::tcp::acceptor acceptor(io_context); + * asio::ip::tcp::acceptor acceptor(my_context); * ... * asio::socket_base::reuse_address option; * acceptor.get_option(option); @@ -404,7 +404,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::linger option(true, 30); * socket.set_option(option); @@ -413,7 +413,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::linger option; * socket.get_option(option); @@ -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(my_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(my_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 @@ -441,7 +475,7 @@ public: * @par Examples * Setting the option: * @code - * asio::ip::tcp::acceptor acceptor(io_context); + * asio::ip::tcp::acceptor acceptor(my_context); * ... * asio::socket_base::enable_connection_aborted option(true); * acceptor.set_option(option); @@ -450,7 +484,7 @@ public: * @par * Getting the current option value: * @code - * asio::ip::tcp::acceptor acceptor(io_context); + * asio::ip::tcp::acceptor acceptor(my_context); * ... * asio::socket_base::enable_connection_aborted option; * acceptor.get_option(option); @@ -476,7 +510,7 @@ public: * * @par Example * @code - * asio::ip::tcp::socket socket(io_context); + * asio::ip::tcp::socket socket(my_context); * ... * asio::socket_base::bytes_readable command(true); * socket.io_control(command); |