Module select

Source
Expand description

The select function.

§Safety

select is unsafe due to I/O safety.

Structs§

FdSetElement
Storage element type for use with select.
FdSetIter
An iterator over the fds in a set.

Constants§

BITS 🔒

Functions§

div_ceil 🔒
fd_set_bound
Compute the minimum nfds value needed for the set pointed to by fds.
fd_set_insert
Set fd in the set pointed to by fds.
fd_set_num_elements
Compute the number of FdSetElements needed to hold a set which can contain up to set_count file descriptors with values less than nfds.
fd_set_num_elements_for_bitvector 🔒
fd_set_num_elements implementation on platforms with bitvector implementations.
fd_set_remove
Clear fd in the set pointed to by fds.
select
select(nfds, readfds, writefds, exceptfds, timeout)—Wait for events on sets of file descriptors.