pub fn poll_set_timeout(
fds: &mut [i32],
event: i16,
timeout: i32,
) -> Option<i32>Expand description
Polls set of sockets with timeout
§Arguments
fds- Set of socket descriptors generated by get_fd_arrayevent- Event to poll (EV_POLLIN or EV_POLLOUT)timeout- Timeout in milliseconds
§Returns
Index of socket on which an event has occurred or None if poll timed out