(to-int this)
Convert an IPv*Address to int
Convert an IPv*Address to int
(in? this net)
Returns true if the IPvAddress is contained in IPvNetwork
Returns true if the IPv*Address is contained in IPv*Network
(to-string 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
(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. - IPv4Address: returns the next IPv4Address - IPv4Network: returns the next IPv4Network with same netmask, - IPv4Interface: returns the next IPv4Interface 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 IPv4Address contained in the network.
Returns a lazy seq of all IPv4Address contained in the network.
(netmask this)
Returns the network netmask: IPv4Netmask type.
Returns the network netmask: IPv4Netmask type.
(hostmask this)
Returns the network hostmask: IPv4Address
Returns the network hostmask: IPv4Address
(broadcast-address this)
Returns the network broadcast address: IPv4Address type.
Returns the network broadcast address: IPv4Address type.
(contains-ip? this ip)
Tests if the network contains the IPv4Address
Tests if the network contains the IPv4Address
(overlaps? this other)
Tests is the two IPv4Network overlap.
Tests is the two IPv4Network overlap.
(hosts this)
Returns the IPv4Address usable for host addressing in this network. Lazy seq.
Returns the IPv4Address 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 IPv4Network with new-prefixlen which are subnets of this.
Returns a list of IPv4Network 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)
Returns the network address: IPv4Address type.
Returns the network address: IPv4Address type.
(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
(global? this)
(link-local? this)
(loopback? this)
(multicast? this)
(private? this)
(reserved? this)
(unspecified? this)
(site-local? this)
(scopeid this)
(make-ipv4address ip)
Used to create and IPv4Address. 'ip' can be an 'int' or a 'string'.
Used to create and IPv4Address. 'ip' can be an 'int' or a 'string'.
(make-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 IPv4Netmask. Input can be an 'int' or a 'string'
Creates an IPv4Netmask. Input can be an 'int' or a 'string'
(make-ipv4network arg)
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
(make-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 an IPv6Netmask from a prefixlen (if arg is a Long). If arg is clojure.lang.BigInt: treats it as an int representation of the netmask.
Create an IPv6Netmask from a prefixlen (if arg is a Long). If arg is clojure.lang.BigInt: treats it as an int representation of the netmask.
(make-ipv6network net)
Create and IPv6Network. 'net' must be a string in format addr/prefixlen
Create and IPv6Network. 'net' must be a string in format addr/prefixlen
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 |