import socket


def port_to_host_int(port: int) -> int:
    """Function to convert a port from network byte order to little endian

    Args:
        port (int): the big endian port to be converted

    Returns:
        int: the little endian representation of the port
    """
    return socket.ntohs(port)