11 #ifndef ASIO_DETAIL_DESCRIPTOR_WRITE_OP_HPP 12 #define ASIO_DETAIL_DESCRIPTOR_WRITE_OP_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 20 #if !defined(ASIO_WINDOWS) && !defined(__CYGWIN__) 34 template <
typename ConstBufferSequence>
39 const ConstBufferSequence&
buffers, func_type complete_func)
41 descriptor_(descriptor),
51 ConstBufferSequence> bufs(o->buffers_);
59 ConstBufferSequence buffers_;
62 template <
typename ConstBufferSequence,
typename Handler>
70 const ConstBufferSequence&
buffers, Handler& handler)
83 ptr p = { asio::detail::addressof(o->handler_), o, o };
94 handler(o->handler_, o->ec_, o->bytes_transferred_);
95 p.h = asio::detail::addressof(handler.
handler_);
117 #endif // !defined(ASIO_WINDOWS) && !defined(__CYGWIN__) 119 #endif // ASIO_DETAIL_DESCRIPTOR_WRITE_OP_HPP
#define ASIO_HANDLER_INVOCATION_END
Holds a buffer that cannot be modified.
descriptor_write_op_base(int descriptor, const ConstBufferSequence &buffers, func_type complete_func)
descriptor_write_op(int descriptor, const ConstBufferSequence &buffers, Handler &handler)
asio::basic_streambuf< Allocator > & b
class task_io_service io_service_impl
void invoke(Function &function, Context &context)
static bool do_perform(reactor_op *base)
const MutableBufferSequence & buffers
#define ASIO_HANDLER_INVOCATION_BEGIN(args)
Class to represent an error code value.
ASIO_DECL bool non_blocking_write(int d, const buf *bufs, std::size_t count, asio::error_code &ec, std::size_t &bytes_transferred)
task_io_service_operation operation
std::size_t bytes_transferred_
static void do_complete(io_service_impl *owner, operation *base, const asio::error_code &, std::size_t)
#define ASIO_DEFINE_HANDLER_PTR(op)
#define ASIO_HANDLER_COMPLETION(args)
#define ASIO_MOVE_CAST(type)