Connects this socket to a peer.
impl Socket {
fn connect<A>(&self, addr: A) -> Result<(), Errno>
where A: AsRef<[u8]>,
}| Name | Description |
|---|---|
| addr | The address of the peer. |
For connection-less sockets, this only sets the default address for packets where the destination has not been specified.