Creates a new Ipv4 socket address from an address and a port.
impl Ipv4SockAddr {
fn from_addr_port(bytes: &mut [u8], addr: Ipv4Addr, port: u16) -> Result<&mut Ipv4SockAddr, Errno>
}| Name | Description |
|---|---|
| bytes | The buffer in which the address will be stored. |
| addr | The Ipv6 address of the socket. |
| port | The port of the socket. |