Method lrs::socket::ip::Ipv6SockAddr::from_addr_port

Creates a new Ipv6 socket address from an address and a port.

Syntax

impl Ipv6SockAddr {
    fn from_addr_port(bytes: &mut [u8], addr: Ipv6Addr, port: u16) -> Result<&mut Ipv6SockAddr, Errno>
}

Arguments

NameDescription
bytes

The buffer in which the address will be stored.

addr

The Ipv6 address of the socket.

port

The port of the socket.