MySQL 8.3.0
Source Code Documentation
net::IoServiceBase Class Referenceabstract

#include <io_service_base.h>

Inheritance diagram for net::IoServiceBase:
[legend]

Public Types

using native_handle_type = impl::socket::native_handle_type
 

Public Member Functions

virtual ~IoServiceBase ()=default
 
virtual stdx::expected< void, std::error_code > open ()=0
 open the io-service. More...
 
virtual void notify ()=0
 
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
 

Member Typedef Documentation

◆ native_handle_type

Constructor & Destructor Documentation

◆ ~IoServiceBase()

virtual net::IoServiceBase::~IoServiceBase ( )
virtualdefault

Member Function Documentation

◆ add_fd_interest()

virtual stdx::expected< void, std::error_code > net::IoServiceBase::add_fd_interest ( native_handle_type  fd,
impl::socket::wait_type  event 
)
pure virtual

◆ notify()

virtual void net::IoServiceBase::notify ( )
pure virtual

◆ open()

virtual stdx::expected< void, std::error_code > net::IoServiceBase::open ( )
pure virtual

open the io-service.

MUST be called before any of the other functions is called.

may fail if out of file-descriptors.

Returns
an std::error_code on error

Implemented in net::linux_epoll_io_service, and net::poll_io_service.

◆ poll_one()

virtual stdx::expected< fd_event, std::error_code > net::IoServiceBase::poll_one ( std::chrono::milliseconds  timeout)
pure virtual

◆ remove_fd()

virtual stdx::expected< void, std::error_code > net::IoServiceBase::remove_fd ( native_handle_type  fd)
pure virtual

The documentation for this class was generated from the following file: