Function lrs::syscall::accept4

Accepts a connection request on a socket.

Syntax

fn accept4(sockfd: i32, addr: Option<&mut [u8]>, addrlen: &mut usize, flags: i32) -> i32

Arguments

NameDescription
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.

Return value

Returns the new socket.

See also