(->ipaddress ip)
Tries to create an IPv4Address, if unsucessful: tries IPv6Address.
Tries to create an IPv4Address, if unsucessful: tries IPv6Address.
(->ipinterface net)
Tries to create an IPv4Interface, if unsucessful: tries IPv6Interface.
Tries to create an IPv4Interface, if unsucessful: tries IPv6Interface.
(->ipnetwork net)
Tries to create an IPv4Network, if unsucessful: tries IPv6Network.
Tries to create an IPv4Network, if unsucessful: tries IPv6Network.
Used to create and IPv4Address. 'ip' can be a 'Long' or a 'String'.
Used to create and IPv4Address. 'ip' can be a 'Long' or a 'String'.
(->ipv4interface intf)
Creates an IPv4Interface. 'intf' must in format: ip/netmask or ip/prefixlen
Creates an IPv4Interface. 'intf' must in format: ip/netmask or ip/prefixlen
Creates an IPv4Network. 'arg' must be in form network/prefixlen or network/netmask
Creates an IPv4Network. 'arg' must be in form network/prefixlen or network/netmask
Used to create IPV6address. The input must be string or a clojure.lang.BigInt.
Used to create IPV6address. The input must be string or a clojure.lang.BigInt.
(->ipv6interface net)
Create and IPv6Interface. 'net' must be a string in format addr/prefixlen
Create and IPv6Interface. 'net' must be a string in format addr/prefixlen
Create and IPv6Network. 'net' must be a string in format addr/prefixlen
Create and IPv6Network. 'net' must be a string in format addr/prefixlen
(collapse-addresses coll)
Collapse a list of IPNetwork
Collapse a list of IPNetwork
(to-int this)
Convert an IPv[46]Address to int
Convert an IPv[46]Address to int
(in? this net)
Returns true if the IPv[46]Address is contained in IPv[46]Network
Returns true if the IPv[46]Address is contained in IPv[46]Network
(<=? this other)
Returns (or (=? this other) (<? this other)
Returns (or (=? this other) (<? this other)
(<? this other)
Returns (neg? (compare this other))
Returns (neg? (compare this other))
(=? this other)
Returns (zero? (compare this other))
Returns (zero? (compare this other))
(>=? this other)
Returns (or (=? this other) (>? this other)
Returns (or (=? this other) (>? this other)
(>? this other)
Returns (pos? (compare this other))
Returns (pos? (compare this other))
(max-prefixlen this)
Returns the maximum value of prefix length (size in bits of IP object)
Returns the maximum value of prefix length (size in bits of IP object)
(toString this)
Returns the default string representation of the type.
Returns the default string representation of the type. - IPv[46]Address and IPv[46]Netmask: the address representation, - IPv[46]Network, IPv[46]Interface: address/prefixlen 'str' calls this function.
(version this)
Returns the IPAddress version: 4 or 6.
Returns the IPAddress version: 4 or 6.
(address this)
Returns the IPv[46]Address of the IPv[46]Interface.
Returns the IPv[46]Address of the IPv[46]Interface.
(network this)
Returns the IPv[46]Network containing the IPv[46]Interface.
Returns the IPv[46]Network containing the IPv[46]Interface.
(next-one this)
Returns the next entry of same type.
Returns the next entry of same type. - IPv[46]Address: returns the next IPv[46]Address - IPv[46]Network: returns the next IPv[46]Network with same netmask, - IPv[46]Interface: returns the next IPv[46]Interface in the same network. Returns nil when no more entry is available. (next-one nil) returns nil
(to-hostmask this)
Converts an IPv[46]Netmask to an IPv[46]Address representing the hostmask
Converts an IPv[46]Netmask to an IPv[46]Address representing the hostmask
(to-prefixlen this)
Converts an IPv[46]Netmask to a prefixlen (that is an int)
Converts an IPv[46]Netmask to a prefixlen (that is an int)
(to-seq this)
Returns a lazy seq of all IPv[46]Address contained in the network.
Returns a lazy seq of all IPv[46]Address contained in the network.
(netmask this)
Returns the network netmask: IPv[46]Netmask type.
Returns the network netmask: IPv[46]Netmask type.
(hostmask this)
Returns the network hostmask: IPv[46]Address
Returns the network hostmask: IPv[46]Address
(network-address this)
Returns the network address: IPv[46]Address type. (Same base-address)
Returns the network address: IPv[46]Address type. (Same base-address)
(broadcast-address this)
Returns the network broadcast address: IPv[46]Address type.
Returns the network broadcast address: IPv[46]Address type.
(contains-ip? this ip)
Tests if the network contains the IPv[46]Address
Tests if the network contains the IPv[46]Address
(overlaps? this other)
Tests is the two IPv[46]Network overlap.
Tests is the two IPv[46]Network overlap.
(hosts this)
Returns the IPv[46]Address usable for host addressing in this network. Lazy seq.
Returns the IPv[46]Address usable for host addressing in this network. Lazy seq.
(address-exclude this other)
Returns a list of subnets of the network, with the exclusion of other
Returns a list of subnets of the network, with the exclusion of other
(supernet-of? this other)
Tests if the network is a superneet of other network.
Tests if the network is a superneet of other network.
(subnets this new-prefixlen)
Returns a list of IPv[46]Network with new-prefixlen which are subnets of this.
Returns a list of IPv[46]Network with new-prefixlen which are subnets of this.
(prefixlen this)
Returns the network prefixlen: int
Returns the network prefixlen: int
(num-addresses this)
Compute the number of addresses in the network.
Compute the number of addresses in the network.
(supernet this new-prefixlen)
Returns the supernet with new-prefixlen that contains the network.
Returns the supernet with new-prefixlen that contains the network.
(subnet-of? this other)
Tests if the nerwork is a subnet of other network
Tests if the nerwork is a subnet of other network
(base-address this)
(Legacy: use network-address
instead). Returns the network address: IPv[46]Address type.
(Legacy: use `network-address` instead). Returns the network address: IPv[46]Address type.
Various predicates, testing the address, network type/scope.
Various predicates, testing the address, network type/scope.
(global? this)
(link-local? this)
(loopback? this)
(multicast? this)
(private? this)
(reserved? this)
(unspecified? this)
(with-hostmask this)
returns a string representation in the format: addr/hostmask
returns a string representation in the format: addr/hostmask
(with-netmask this)
Returns a string representation in the format: addr/netmask
Returns a string representation in the format: addr/netmask
(with-prefixlen this)
Returns a string representation in the format: addr/prefixlen
Returns a string representation in the format: addr/prefixlen
(ipv4-mapped this)
Returns the IPv4Address if it is an ipv4 mapped address. Returns nil otherwise.
Returns the IPv4Address if it is an ipv4 mapped address. Returns nil otherwise.
(scopeid this)
(summarize-address-range ip1 ip2)
Given the first and last IP Address: returns a list of IP Network representing the range.
Given the first and last IP Address: returns a list of IP Network representing the range.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |