using poll_event_base = struct ::epoll_eventFile descriptor event base class.
Input/output events.
in = EPOLLINout = EPOLLOUThup = EPOLLHUP | EPOLLRDHUPerr = EPOLLERRinout = EPOLLIN | EPOLLOUTdef = EPOLLRDHUP | EPOLLETFile descriptor event wrapper for event_poller.
public poll_event_baseoperator!() const -> boolReturns true, if either file descriptor is invalid, or a bad event occurred.
operator bool() constexplicitReturns true, if file descriptor is valid and no bad events occurred.
operator<(const epoll_event & rhs) const -> boolCompares file descriptors.
operator!=(const epoll_event & rhs) const -> boolReturns true, if events have different file descriptors.
operator==(const epoll_event & rhs) const -> boolReturns true, if events have the same file descriptor.
probe() const -> ssize_tProbe file descriptor by peeking a byte from it.
unsetev(event rhs) -> void
Unset events rhs in event mask.
setev(event rhs) -> void
Set events rhs in event mask.
bad() const -> boolReturns true, if an error or hang up occurred.
err() const -> boolReturns true, if an error occurred.
hup() const -> boolReturns true, if hang up event occurred (the other end of the channel was closed).
out() const -> boolReturns true, if output event occurred.
in() const -> boolReturns true, if input event occurred.
bad_fd() const -> boolReturns true, if file descriptor is invalid.
disable() -> voidDisable polling by setting file descriptor to -1.
fd() const -> fd_typeGet file descriptor.
events() const -> EGet event mask.
operator=(const epoll_event &) -> epoll_event &Assignment.
~epoll_event()epoll_event(fd_type f, event ev)
Construct object from file descriptor f and event mask ev.
epoll_event()operator&(decltype(poll_event_base::events) a, event b) -> eventoperator&(event a, decltype(poll_event_base::events) b) -> eventoperator!=(decltype(poll_event_base::events) a, event b) -> booloperator|(event a, decltype(poll_event_base::events) b) -> eventoperator<<(std::ostream & out, const epoll_event & rhs) -> std::ostream &Output file descriptor and event mask for debugging.
operator!=(event a, decltype(poll_event_base::events) b) -> booloperator==(decltype(poll_event_base::events) a, event b) -> booloperator==(event a, decltype(poll_event_base::events) b) -> booloperator|(decltype(poll_event_base::events) a, event b) -> event