pub unsafe extern "C" fn accept(
__fd: c_int,
__addr: *mut sockaddr,
__addr_len: *mut socklen_t,
) -> c_intExpand description
Await a connection on socket FD. When a connection arrives, open a new socket to communicate with it, set *ADDR (which is *ADDR_LEN bytes long) to the address of the connecting peer and *ADDR_LEN to the address’s actual length, and return the new socket’s descriptor, or -1 for errors.
This function is a cancellation point and therefore not marked with __THROW.