11 #ifndef ASIO_DETAIL_IO_CONTROL_HPP 12 #define ASIO_DETAIL_IO_CONTROL_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 18 #include "asio/detail/config.hpp" 20 #include "asio/detail/socket_types.hpp" 22 #include "asio/detail/push_options.hpp" 26 namespace io_control {
40 : value_(static_cast<detail::ioctl_arg_type>(value))
47 return static_cast<int>(ASIO_OS_DEF(FIONREAD));
51 void set(std::size_t value)
53 value_ =
static_cast<detail::ioctl_arg_type
>(value);
57 std::size_t
get()
const 59 return static_cast<std::size_t
>(value_);
63 detail::ioctl_arg_type* data()
69 const detail::ioctl_arg_type* data()
const 75 detail::ioctl_arg_type value_;
82 #include "asio/detail/pop_options.hpp" 84 #endif // ASIO_DETAIL_IO_CONTROL_HPP
Definition: io_control.hpp:29
Definition: any_io_executor.hpp:28