import socket


def port_to_network_int(port: int) -> int:
    """Function to conver a port (integer) into its big endian representation

    Args:
        port (int): the value of the port

    Returns:
        int: the big endian representation of the port
    """
    return socket.htons(port)