CrossClj

0.5.7 docs

SourceDocs



RECENT
    VARS
    ->network-set
    address
    address*
    address->BigInteger
    address-add
    address-networks
    address-range
    address-zero?
    address?
    inet-address
    IPAddressConstruction
    IPAddressOperations
    IPNetworkConstruction
    IPNetworkOperations
    network
    network*
    network-compare
    network-contains?
    network-count
    network-nth
    network-set
    network-subnets
    network-supernet
    network-trunc
    network?
    string-address
    string-address-ipv4
    string-address-ipv6
    string-network-parts
    string-network-split

    « Index of all namespaces of this project

    Functions for interacting with IP addresses and networks.
    
    (->network-set coll)
    Create a hierarchical set from networks in coll.
    
    (address addr)
    The IP address for representation addr.
    
    Private
    (address* orig bytes)
    Private
    (address->BigInteger addr)
    Convert addr to an internal-format BigInteger.
    
    (address-add addr n)
    The nth address following addr numerically.
    
    (address-networks start stop)
    Minimal set of networks containing only the addresses in the range from
    start to stop *inclusive*.
    (address-range start stop)
    Sequence of addresses from start to stop *inclusive*.
    
    (address-zero? addr)
    True iff address addr is the zero address.
    
    (address? addr)
    Determine if addr is a value which represents an IP address.
    
    (inet-address addr)
    Generate a java.net.InetAddress from the provided value.
    
    protocol
    Construct a full address object.
    
    Private
    (-address addr)
    Produce an IPAddress from addr.
    
    protocol
    Operations on objects which may be treated as addresses.
    
    Private
    (-address? addr)
    Returns whether or not the value represents a valid address.
    
    (address-bytes addr)
    Retrieve the bytes representation of this address.
    
    (address-length addr)
    The length in bits of this address.
    
    protocol
    Construct a full network object.
    
    Private
    (-network net)(-network prefix length)
    Produce an IPNetwork from net or prefix & length.
    
    protocol
    Operations on objects which may be treated as networks.
    
    (network-length net)
    The length in bits of the network prefix.
    
    Private
    (network?* net)(network?* addr length)
    Returns whether or not the value represents a valid network.
    
    (network net)(network prefix length)
    The IP network for representation net or prefix & length.
    
    Private
    (network* orig bytes length)
    (network-compare left right)(network-compare stable left right)
    Compare the prefixes of networks left and right, with the same result
    semantics as compare.  When stable is true (the default), 0 will only be
    returned when the networks are value-identical; when stable is false, 0 will
    be returned as long as the networks are identical up to their minimum common
    prefix length.
    (network-contains? net addr)
    Determine if network net contains the address/network addr.
    
    (network-count net)
    Count of addresses in network net.
    
    (network-nth net n)
    The nth address in the network net.  Negative ns count backwards
    from the final address at -1.
    (network-set & nets)
    Create a hierarchical set from networks nets.
    
    (network-subnets net)(network-subnets net n)
    Set of networks within the network net which have n additional bits of
    network prefix, default 1.
    (network-supernet net)(network-supernet net n)
    Network containing the network net with a prefix shorter by n bits,
    default 1.
    (network-trunc prefix)(network-trunc prefix length)
    Create a network with a prefix consisting of the first length bits of
    prefix and a length of length.
    (network? net)(network? addr length)
    Determine if net is a value which represents an IP network.
    
    Private
    (string-address bytes)
    Private
    (string-address-ipv4 bytes)
    Private
    (string-address-ipv6 bytes)
    Private
    (string-network-parts net)
    Private
    (string-network-split net)