#define BOOST_ASIO_BASIC_SEQ_PACKET_SOCKET_FWD_DECL
// Forward declaration with defaulted arguments.
-template <typename Protocol, typename Executor = executor>
+template <typename Protocol, typename Executor = any_io_executor>
class basic_seq_packet_socket;
#endif // !defined(BOOST_ASIO_BASIC_SEQ_PACKET_SOCKET_FWD_DECL)
}
private:
+ // Disallow copying and assignment.
+ basic_seq_packet_socket(const basic_seq_packet_socket&) BOOST_ASIO_DELETED;
+ basic_seq_packet_socket& operator=(
+ const basic_seq_packet_socket&) BOOST_ASIO_DELETED;
+
class initiate_async_send
{
public:
detail::non_const_lvalue<WriteHandler> handler2(handler);
self_->impl_.get_service().async_send(
self_->impl_.get_implementation(), buffers, flags,
- handler2.value, self_->impl_.get_implementation_executor());
+ handler2.value, self_->impl_.get_executor());
}
private:
detail::non_const_lvalue<ReadHandler> handler2(handler);
self_->impl_.get_service().async_receive_with_flags(
- self_->impl_.get_implementation(), buffers, in_flags, *out_flags,
- handler2.value, self_->impl_.get_implementation_executor());
+ self_->impl_.get_implementation(), buffers, in_flags,
+ *out_flags, handler2.value, self_->impl_.get_executor());
}
private: