26#ifndef MYSQL_HARNESS_NET_TS_IMPL_IO_SERVICE_BASE_H_
27#define MYSQL_HARNESS_NET_TS_IMPL_IO_SERVICE_BASE_H_
30#include <system_error>
48 class io_service_category_impl :
public std::error_category {
50 const char *
name()
const noexcept override {
return "io_service"; }
51 std::string message(
int ev)
const override {
54 return "no file-descriptors";
61 static io_service_category_impl instance;
109 std::chrono::milliseconds
timeout) = 0;
Definition: io_service_base.h:87
virtual ~IoServiceBase()=default
virtual stdx::expected< void, std::error_code > add_fd_interest(native_handle_type fd, impl::socket::wait_type event)=0
virtual stdx::expected< fd_event, std::error_code > poll_one(std::chrono::milliseconds timeout)=0
virtual stdx::expected< void, std::error_code > remove_fd(native_handle_type fd)=0
virtual stdx::expected< void, std::error_code > open()=0
open the io-service.
impl::socket::native_handle_type native_handle_type
Definition: io_service_base.h:89
Definition: expected.h:286
static bool timeout(bool(*wait_condition)())
Timeout function.
Definition: log0meb.cc:498
wait_type
Definition: socket_constants.h:86
int native_handle_type
Definition: socket_constants.h:51
constexpr const native_handle_type kInvalidSocket
Definition: socket_constants.h:52
bool operator!=(const system_executor &, const system_executor &)
Definition: executor.h:551
io_service_errc
Definition: io_service_base.h:36
const std::error_category & io_service_category() noexcept
Definition: io_service_base.h:47
bool operator==(const system_executor &, const system_executor &)
Definition: executor.h:547
std::error_code make_error_code(net::stream_errc e) noexcept
Definition: buffer.h:103
Definition: gcs_xcom_synode.h:64
required string event
Definition: replication_group_member_actions.proto:32
case opt name
Definition: sslopt-case.h:29
Definition: io_service_base.h:69
native_handle_type fd
Definition: io_service_base.h:75
impl::socket::native_handle_type native_handle_type
Definition: io_service_base.h:70
fd_event(native_handle_type _fd, short _event)
Definition: io_service_base.h:73
short event
Definition: io_service_base.h:76