Accepts a connection request on a socket.
fn accept4(sockfd: i32, addr: Option<&mut [u8]>, addrlen: &mut usize, flags: i32) -> i32
| Name | Description |
|---|---|
| sockfd | The socket. |
| addr | Optional space in which the address of the peer will be stored. |
| addrlen | The length of the peer's address. |
| flags | Flags used for accepting a request. |
Returns the new socket.