[−][src]Function simpletcp::utils::poll_timeout
pub fn poll_timeout<A: AsRawFd>(socket: &A, event: i16, timeout: i32) -> bool
Polls the socket with timeout
Arguments
socket
- Socket to pollevent
- Event to poll (EV_POLLIN or EV_POLLOUT)timeout
- Timeout in milliseconds
Returns
true
if polled event has occurred, false
if not