def address_from_host_and_port(
        host: str,
        port: int,
        bound: bool = False
    ) -> str:
    """Return a TCP address for a given host and port. If the address is meant
    to be bound, it will be bound to all available TCP interfaces (*)."""

    if bound:
        address = "tcp://*:{}".format(port)
    else:
        address = "tcp://{}:{}".format(host, port)

    return address