Liking cljdoc? Tell your friends :D

com.dmo-t.ipaddress.core


IPAddrConvcljprotocol

to-intclj

(to-int this)

Convert an IPv[46]Address to int

Convert an IPv[46]Address to int

IPAddresscljprotocol

in?clj

(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

IPBasecljprotocol

to-stringclj

(to-string this)

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
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

toStringclj

(toString this)

eg to-string

eg to-string

versionclj

(version this)

Returns the IPAddress version: 4 or 6.

Returns the IPAddress version: 4 or 6.

IPInterfacecljprotocol

addressclj

(address this)

Returns the IPv[46]Address of the IPv[46]Interface.

Returns the IPv[46]Address of the IPv[46]Interface.

networkclj

(network this)

Returns the IPv[46]Network containing the IPv[46]Interface.

Returns the IPv[46]Network containing the IPv[46]Interface.

IPItercljprotocol

next-oneclj

(next-one this)

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
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

IPNetmaskcljprotocol

to-hostmaskclj

(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-prefixlenclj

(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)

IPNetworkcljprotocol

to-seqclj

(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.

netmaskclj

(netmask this)

Returns the network netmask: IPv[46]Netmask type.

Returns the network netmask: IPv[46]Netmask type.

hostmaskclj

(hostmask this)

Returns the network hostmask: IPv[46]Address

Returns the network hostmask: IPv[46]Address

broadcast-addressclj

(broadcast-address this)

Returns the network broadcast address: IPv[46]Address type.

Returns the network broadcast address: IPv[46]Address type.

contains-ip?clj

(contains-ip? this ip)

Tests if the network contains the IPv[46]Address

Tests if the network contains the IPv[46]Address

overlaps?clj

(overlaps? this other)

Tests is the two IPv[46]Network overlap.

Tests is the two IPv[46]Network overlap.

hostsclj

(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-excludeclj

(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?clj

(supernet-of? this other)

Tests if the network is a superneet of other network.

Tests if the network is a superneet of other network.

subnetsclj

(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.

prefixlenclj

(prefixlen this)

Returns the network prefixlen: int

Returns the network prefixlen: int

num-addressesclj

(num-addresses this)

Compute the number of addresses in the network.

Compute the number of addresses in the network.

supernetclj

(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?clj

(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-addressclj

(base-address this)

Returns the network address: IPv[46]Address type.

Returns the network address: IPv[46]Address type.

IPOutputcljprotocol

with-hostmaskclj

(with-hostmask this)

returns a string representation in the format: addr/hostmask

returns a string representation in the format: addr/hostmask

with-netmaskclj

(with-netmask this)

Returns a string representation in the format: addr/netmask

Returns a string representation in the format: addr/netmask

with-prefixlenclj

(with-prefixlen this)

Returns a string representation in the format: addr/prefixlen

Returns a string representation in the format: addr/prefixlen

IPScopecljprotocol

global?clj

(global? this)
(link-local? this)

loopback?clj

(loopback? this)

multicast?clj

(multicast? this)

private?clj

(private? this)

reserved?clj

(reserved? this)

unspecified?clj

(unspecified? this)


IPv4-LOOPBACK-NETWORKclj


IPv4-MULTICAST-NETWORKclj


IPv4-PRIVATE-NETWORKSclj


IPv4-PRIVATE-NETWORKS-EXCEPTIONSclj


IPv4-PUBLIC-NETWORKclj


IPv4-RESERVED-NETWORKclj


IPv4-UNSPECIFIED-ADDRESSclj


IPv6-ALL-ONESclj



IPv6-MULTICAST-NETWORKclj


IPv6-PRIVATE-NETWORKSclj


IPv6-PRIVATE-NETWORKS-EXCEPTIONSclj


IPv6-RESERVED-NETWORKSclj


IPv6-SITE-LOCAL-NETWORKclj


IPv6Scopecljprotocol

site-local?clj

(site-local? this)

IPv6Specificcljprotocol

ipv4-mappedclj

(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.

scopeidclj

(scopeid this)

make-ipv4addressclj

(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'.
raw docstring

make-ipv4interfaceclj

(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 
raw docstring

make-ipv4networkclj

(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
raw docstring

make-ipv6addresscljmultimethod


make-ipv6interfaceclj

(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
raw docstring

make-ipv6networkclj

(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
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close