Method lrs::socket::Socket::listen

Marks this socket as accepting incoming connections.

Syntax

impl Socket {
    fn listen(&self, backlog: u32) -> Result<(), Errno>
}

Arguments

NameDescription
backlog

The maximum number of pending connection requests.

Remarks

When backlog many requests are waiting to be accepted, new requests will automatically be rejected.

See also