11 #ifndef ASIO_DETAIL_WIN_IOCP_NULL_BUFFERS_OP_HPP 12 #define ASIO_DETAIL_WIN_IOCP_NULL_BUFFERS_OP_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 20 #if defined(ASIO_HAS_IOCP) 37 template <
typename Handler>
38 class win_iocp_null_buffers_op :
public reactor_op
45 : reactor_op(&win_iocp_null_buffers_op::do_perform,
46 &win_iocp_null_buffers_op::do_complete),
47 cancel_token_(cancel_token),
52 static bool do_perform(reactor_op*)
59 std::size_t bytes_transferred)
64 win_iocp_null_buffers_op* o(static_cast<win_iocp_null_buffers_op*>(base));
65 ptr p = { asio::detail::addressof(o->handler_), o, o };
74 if (ec.value() == ERROR_NETNAME_DELETED)
76 if (o->cancel_token_.expired())
81 else if (ec.value() == ERROR_PORT_UNREACHABLE)
92 detail::binder2<Handler, asio::error_code, std::size_t>
93 handler(o->handler_, ec, bytes_transferred);
94 p.h = asio::detail::addressof(handler.handler_);
117 #endif // defined(ASIO_HAS_IOCP) 119 #endif // ASIO_DETAIL_WIN_IOCP_NULL_BUFFERS_OP_HPP
#define ASIO_HANDLER_INVOCATION_END
asio::basic_streambuf< Allocator > & b
null_fenced_block fenced_block
class task_io_service io_service_impl
void invoke(Function &function, Context &context)
weak_ptr< void > weak_cancel_token_type
#define ASIO_HANDLER_INVOCATION_BEGIN(args)
Class to represent an error code value.
task_io_service_operation operation
#define ASIO_DEFINE_HANDLER_PTR(op)
#define ASIO_HANDLER_COMPLETION(args)
#define ASIO_MOVE_CAST(type)
Connection reset by peer.