(hostname)
Attempt to verify availability of the server at the given hostname.

    :return 1 if server was reachable, 0 otherwise.
Attempt to verify availability of the server at the given hostname.
Attempt to verify availability of the server at the given hostname .
def resolve_taxii_server(hostname):
    """
    Attempt to verify availability of the server at the given hostname.

    :return 1 if server was reachable, 0 otherwise.
    """
    try:
        socket.gethostbyname(hostname)
        return 1
    except socket.error:
        return 0
def resolve_taxii_server ( hostname ) : try : socket . gethostbyname ( hostname ) return 1 except socket . error : return 0