async fn read_ipv4_address(socket: &mut TcpStream) -> Result<Ipv4Addr, std::io::Error> {
    let a = socket.read_u32_le().await?;
    Ok(Ipv4Addr::new(
        a as u8,
        (a >> 8) as u8,
        (a >> 16) as u8,
        (a >> 24) as u8,
    ))
}
/// Reads an IPv4 address from the specified socket.
Reads an IPv4 address from the specified socket.
Reads an IPv4 address from the specified socket .
async fn read_ipv4_address(socket: &mut TcpStream) -> Result<Ipv4Addr, std::io::Error> {
    let a = socket.read_u32_le().await?;
    Ok(Ipv4Addr::new(
        a as u8,
        (a >> 8) as u8,
        (a >> 16) as u8,
        (a >> 24) as u8,
    ))
}
async fn read_ipv4_address ( socket : & mut TcpStream ) -> Result < Ipv4Addr , std :: io :: Error > { let a = socket . read_u32_le ( ) . await ? ; Ok ( Ipv4Addr :: new ( a as u8 , ( a >> 8 ) as u8 , ( a >> 16 ) as u8 , ( a >> 24 ) as u8 , ) ) }
Reads an IPv4 address from the specified socket.
Reads an IPv4 address from the specified socket .
socket
&mut TcpStream
socket
&mut TcpStream