CrossClj

0.1.0 docs

SourceDocs



RECENT
    VARS
    all-by-name
    by-address
    by-name
    localhost
    loopback

    « Index of all namespaces of this project

    (all-by-name host)
    Given the name of a host, returns an Clojure vector of its IP address
    objects, based on the configured name service on the system.
    (by-address addr)(by-address host addr)
    Returns an InetAddress.
    
    In the arity-1 case, an object is given a vector of octets representing a
    'raw' IP address.  In the arity-2 case, an object is given based on the
    provided host name and a 'raw' IP address.
    
    Note: expected type of addr is a byte array, e.g.:
    `clj
    (by-address [127 0 0 1])
    `
    or
    `clj
    (by-address "localhost" [127 0 0 1])
    `
    (by-name host)
    Determines the IP address of a host, given the host's name.
    
    (localhost)
    Returns the address of the local host.
    
    (loopback)
    Returns the loopback address.