24#ifndef LELY_IO2_EVENT_HPP_
25#define LELY_IO2_EVENT_HPP_
79 return static_cast<Event
>(~static_cast<int>(rhs));
83operator&(Event lhs, Event rhs) {
84 return static_cast<Event
>(
static_cast<int>(lhs) &
static_cast<int>(rhs));
88operator^(Event lhs, Event rhs) {
89 return static_cast<Event>(
static_cast<int>(lhs) ^
static_cast<int>(rhs));
93operator|(Event lhs, Event rhs) {
94 return static_cast<Event>(
static_cast<int>(lhs) |
static_cast<int>(rhs));
98operator&=(Event& lhs, Event rhs) {
99 return lhs = lhs & rhs;
103operator^=(Event& lhs, Event rhs) {
104 return lhs = lhs ^ rhs;
108operator|=(Event& lhs, Event rhs) {
109 return lhs = lhs | rhs;
This header file is part of the I/O library; it contains the I/O event declarations.
@ IO_EVENT_HUP
The device has been disconnected.
@ IO_EVENT_IN
Data (other than priority data) MAY be read without blocking.
@ IO_EVENT_OUT
Data (bot normal and priority data) MAY be written without blocking.
@ IO_EVENT_ERR
An error has occurred. This event is always reported.
@ IO_EVENT_PRI
Priority data MAY be read without blocking.
Event
The type of I/O event monitored by lely::io::Poll::watch() and reported to io_poll_watch_func_t callb...
@ HUP
The device has been disconnected.
@ IN
Data (other than priority data) MAY be read without blocking.
@ PRI
Priority data MAY be read without blocking.
@ OUT
Data (bot normal and priority data) MAY be written without blocking.
@ ERR
Reception of error frames is enabled.