26#ifndef MYSQL_HARNESS_NET_TS_IMPL_POLL_H_
27#define MYSQL_HARNESS_NET_TS_IMPL_POLL_H_
31#include <system_error>
57 auto res = ::WSAPoll(fds, num_fds,
timeout.count());
59 constexpr const auto err_res{-1};
Definition: authentication.cc:36
static bool timeout(bool(*wait_condition)())
Timeout function.
Definition: log0meb.cc:496
pollfd poll_fd
Definition: poll.h:50
stdx::expected< size_t, std::error_code > poll(poll_fd *fds, size_t num_fds, std::chrono::milliseconds timeout)
Definition: poll.h:53
std::error_code last_error_code()
get last std::error_code for socket-errors.
Definition: socket_error.h:107
std::error_code make_error_code(net::stream_errc e) noexcept
Definition: buffer.h:103
constexpr auto make_unexpected(E &&e) -> unexpected< std::decay_t< E > >
Definition: expected.h:125
struct pollfd pollfd
Definition: task_os.h:114