Method lrs::socket::Socket::linger

Retrieves the linger setting of this socket.

Syntax

impl Socket {
    fn linger(&self) -> Result<Option<u32>, Errno>
}

Return value

Returns the number of seconds this socket will linger in the foreground or None.

See also