Function select

Source
pub fn select(
    read_fds: &[&Socket],
    write_fds: &[&Socket],
    except_fds: &[&Socket],
    timeout_ms: Option<u64>,
) -> Result<c_int>
Expand description

Wrapper over system select

Returns number of sockets that are ready.

If timeout isn’t specified then select will be blocking call.

§Note:

Number of each set cannot be bigger than FD_SETSIZE i.e. 64

§Warning:

It is invalid to pass all sets of descriptors empty on Windows.