Epoll

Epoll utility struct, memorises the file descriptor obtained by create().

Members

Aliases

CreateFlags
alias CreateFlags = .EpollCreateFlags

Convenience aliases

CtlOp
alias CtlOp = .EpollCtlOp
Undocumented in source.
Event
alias Event = .epoll_event_t.Event
Undocumented in source.
epoll_event_t
alias epoll_event_t = .epoll_event_t
Undocumented in source.

Functions

close
int close()

Calls close() to close the current epoll file descriptor.

create
int create(CreateFlags flags)

Calls epoll_create1() and memorises the returned file descriptor, which is -1 in case of an error.

ctl
int ctl(CtlOp op, int fd, epoll_event_t event)

Calls epoll_ctl() using the current epoll file descriptor.

ctl
int ctl(CtlOp op, int fd, Event events)

Calls epoll_ctl() using the current epoll file descriptor to modify the registration of fd for events with fd as user data.

ctl
int ctl(CtlOp op, int fd, Event events, ulong u64)

Calls epoll_ctl() using the current epoll file descriptor to modify the registration of fd for events with obj as user data.

ctl
int ctl(CtlOp op, int fd, Event events, Object obj)

Calls epoll_ctl() using the current epoll file descriptor to modify the registration of fd for events with obj as user data.

wait
int wait(epoll_event_t[] events, int timeout_ms)

Calls epoll_wait() using the current epoll file descriptor.

Mixins

__anonymous
mixin ctlT!()
Undocumented in source.

Templates

ctlT
template ctlT(size_t i = 0)
Undocumented in source.

Variables

fd
int fd;

epoll file descriptor.

fd_init
enum int fd_init;

Initial file descriptor value.

Meta