Method lrs::socket::Socket::netlink

Creates a new Netlink socket.

Syntax

impl Socket {
    fn netlink(proto: Proto, flags: SockFlags) -> Result<Socket, Errno>
}

Arguments

NameDescription
proto
flags

Remarks

This is equivalent to

Socket::new(domain::Netlink, kind::Raw, proto.0 as c_int, flags)

See also