Method lrs::socket::Socket::connect

Connects this socket to a peer.

Syntax

impl Socket {
    fn connect<A>(&self, addr: A) -> Result<(), Errno>
        where A: AsRef<[u8]>,
}

Arguments

NameDescription
addr

The address of the peer.

Remarks

For connection-less sockets, this only sets the default address for packets where the destination has not been specified.

See also