11 #ifndef ASIO_DETAIL_POSIX_FD_SET_ADAPTER_HPP 12 #define ASIO_DETAIL_POSIX_FD_SET_ADAPTER_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 20 #if !defined(ASIO_WINDOWS) \ 21 && !defined(__CYGWIN__) \ 22 && !defined(ASIO_WINDOWS_RUNTIME) 55 if (max_descriptor_ ==
invalid_socket || descriptor > max_descriptor_)
56 max_descriptor_ = descriptor;
57 FD_SET(descriptor, &fd_set_);
66 while (i != operations.
end())
69 if (!
set(op_iter->first))
72 operations.cancel_operations(op_iter, ops, ec);
79 return FD_ISSET(descriptor, &fd_set_) != 0;
89 return max_descriptor_;
96 while (i != operations.
end())
99 if (
is_set(op_iter->first))
105 mutable fd_set fd_set_;
114 #endif // !defined(ASIO_WINDOWS) 118 #endif // ASIO_DETAIL_POSIX_FD_SET_ADAPTER_HPP
void perform(reactor_op_queue< socket_type > &operations, op_queue< operation > &ops) const
socket_type max_descriptor() const
bool perform_operations(iterator i, op_queue< operation > &ops)
The descriptor cannot fit into the select system call's fd_set.
Class to represent an error code value.
bool is_set(socket_type descriptor) const