The OpenD Programming Language

epoll_wait

Wait for events on an epoll instance.

version(linux)
extern (C) @nogc nothrow
int
epoll_wait
(
int epfd
,
epoll_event* events
,,)

Parameters

epfd int

an epoll file descriptor instance

events epoll_event*

a buffer that will contain triggered events

maxevents int

the maximum number of events to be returned ( usually size of "events" )

timeout int

specifies the maximum wait time in milliseconds (-1 == infinite)

Return Value

Type: int

the number of triggered events returned in "events" buffer. Or -1 in case of error with the "errno" variable set to the specific error code.

Meta