25#ifndef MYSQL_HARNESS_NET_TS_IMPL_IO_SERVICE_BASE_H_
26#define MYSQL_HARNESS_NET_TS_IMPL_IO_SERVICE_BASE_H_
29#include <system_error>
47 class io_service_category_impl :
public std::error_category {
49 const char *
name()
const noexcept override {
return "io_service"; }
50 std::string message(
int ev)
const override {
53 return "no file-descriptors";
60 static io_service_category_impl instance;
108 std::chrono::milliseconds
timeout) = 0;
Definition: io_service_base.h:86
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:88
Definition: expected.h:943
static bool timeout(bool(*wait_condition)())
Timeout function.
Definition: log0meb.cc:497
wait_type
Definition: socket_constants.h:85
int native_handle_type
Definition: socket_constants.h:50
constexpr const native_handle_type kInvalidSocket
Definition: socket_constants.h:51
bool operator!=(const system_executor &, const system_executor &)
Definition: executor.h:575
io_service_errc
Definition: io_service_base.h:35
const std::error_category & io_service_category() noexcept
Definition: io_service_base.h:46
bool operator==(const system_executor &, const system_executor &)
Definition: executor.h:571
std::error_code make_error_code(net::stream_errc e) noexcept
Definition: buffer.h:102
Definition: varlen_sort.h:183
required string event
Definition: replication_group_member_actions.proto:31
case opt name
Definition: sslopt-case.h:32
Definition: io_service_base.h:68
native_handle_type fd
Definition: io_service_base.h:74
impl::socket::native_handle_type native_handle_type
Definition: io_service_base.h:69
fd_event(native_handle_type _fd, short _event)
Definition: io_service_base.h:72
short event
Definition: io_service_base.h:75