EpollFlag enum

Inheritance
Available extensions

Values

inReady → const EpollFlag

The associated file is available for read operations.

const EpollFlag(EPOLLIN)
outReady → const EpollFlag

The associated file is available for write operations.

const EpollFlag(EPOLLOUT)
rdhup → const EpollFlag

Stream socket peer closed connection, or shut down writing half of connection.

const EpollFlag(EPOLLRDHUP)
pri → const EpollFlag

There is an exceptional condition on the file descriptor.

const EpollFlag(EPOLLPRI)
err → const EpollFlag

Error condition happened on the associated file descriptor.

This event is also reported for the write end of a pipe when the read end has been closed.

LibC.epoll_wait will always report this event; it is not necessary to set it in events when calling LibC.epoll_ctl.

const EpollFlag(EPOLLERR)
hup → const EpollFlag

Hang up happened on the associated file descriptor.

LibC.epoll_wait will always wait for this event; it is not necessary to set it in events when calling LibC.epoll_ctl.

Note that when reading from a channel such as a pipe or a stream socket, this event merely indicates that the peer closed its end of the channel. Subsequent reads from the channel will return 0 (end of file) only after all outstanding data in the channel has been consumed.

const EpollFlag(EPOLLHUP)
edgeTriggered → const EpollFlag

Requests edge-triggered notification for the associated file descriptor. The default behavior for epoll is level- triggered. See 1 for more detailed information about edge-triggered and level-triggered notification.

This flag is an input flag for the event.events field when calling LibC.epoll_ctl; it is never returned by LibC.epoll_wait.

const EpollFlag(EPOLLET)
oneShot → const EpollFlag

Requests one-shot notification for the associated file descriptor.

This means that after an event notified for the file descriptor by LibC.epoll_wait, the file descriptor is disabled in the interest list and no other events will be reported by the epoll interface. The user must call LibC.epoll_ctl with EPOLL_CTL_MOD to rearm the file descriptor with a new event mask.

This flag is an input flag for the event.events field when calling LibC.epoll_ctl; it is never returned by LibC.epoll_wait.

const EpollFlag(EPOLLONESHOT)
wakeUp → const EpollFlag

If oneShot and edegeTriggered are clear and the process has the CAP_BLOCK_SUSPEND capability, ensure that the system does not enter "suspend" or "hibernate" while this event is pending or being processed.

The event is considered as being "processed" from the time when it is returned by a call to LibC.epoll_wait until the next call to LibC.epoll_wait on the same epoll file descriptor, the closure of that file descriptor, the removal of the event file descriptor with EPOLL_CTL_DEL, or the clearing of wakeUp for the event file descriptor with EPOLL_CTL_MOD.

This flag is an input flag for the event.events field when calling LibC.epoll_ctl; it is never returned by LibC.epoll_wait.

const EpollFlag(EPOLLWAKEUP)
exclusive → const EpollFlag

Sets an exclusive wakeup mode for the epoll file descriptor that is being attached to the target file descriptor, fd.

See: https://man7.org/linux/man-pages/man2/epoll_ctl.2.html

const EpollFlag(EPOLLEXCLUSIVE)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<EpollFlag>
A constant List of the values in this enum, in order of their declaration.