Method lrs::socket::Socket::accept

Accepts a new connection on the socket.

Syntax

impl Socket {
    fn accept(&self, flags: SockFlags) -> Result<Socket, Errno>
}

Arguments

NameDescription
flags

The flags that will be set on the returned socket.

Remarks

The flags argument will be used to construct the new socket, similar to how they are used in the constructors of the socket type.

See also