Method lrs::socket::ip::Ipv4SockAddr::from_addr_port

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

Syntax

impl Ipv4SockAddr {
    fn from_addr_port(bytes: &mut [u8], addr: Ipv4Addr, port: u16) -> Result<&mut Ipv4SockAddr, 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.