Liking cljdoc? Tell your friends :D

inet.address.six


addressclj

(address this)

Returns the raw IP address of this InetAddress object as a Clojure vector.

Returns the raw IP address of this InetAddress object as a Clojure
vector.
sourceraw docstring

all-by-nameclj

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

Given the name of a host, returns an Clojure vector of its IP address
objects, based on the configured name service on the system.
sourceraw docstring

any-local-address?clj

(any-local-address? this)

Utility routine to check if the InetAddress in a wildcard address.

Utility routine to check if the InetAddress in a wildcard address.
sourceraw docstring

behaviourclj

source

by-addressclj

(by-address host addr scope-or-nif)

Returns an Inet6Address.

This creates an Inet6Address in a similar manner as with the 2-arity ipnet-core/by-address except that a third argument is provided:

  • either the IPv6 scope id is set by passing an integer represenging the scope id, or
  • the IPv6 scope_id is set to the value corresponding to the given interface for the address type specified with addr.

Note: as with InetAddress, and Inet4Address, the expected type of addr is a vector of integers, e.g.:

(by-address "localhost" [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1] 0)
Returns an `Inet6Address`.

This creates an `Inet6Address` in a similar manner as with the 2-arity
`ipnet-core/by-address` except that a third argument is provided:

* either the IPv6 scope id is set by passing an integer represenging the
  scope id, or
* the IPv6 scope_id is set to the value corresponding to the given
  interface for the address type specified with `addr`.

Note: as with `InetAddress`, and `Inet4Address`, the expected type of
`addr` is a vector of integers, e.g.:
```clj
(by-address "localhost" [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1] 0)
```
sourceraw docstring

by-nameclj

(by-name host)

Determines the IP address of a host, given the host's name.

Determines the IP address of a host, given the host's name.
sourceraw docstring

canonical-hostnameclj

(canonical-hostname this)

Gets the fully qualified domain name for this IP address.

Gets the fully qualified domain name for this IP address.
sourceraw docstring

createclj

source

host-addressclj

(host-address this)

Returns the IP address string in textual presentation.

Returns the IP address string in textual presentation.
sourceraw docstring

hostnameclj

(hostname this)

Gets the host name for this IP address.

Gets the host name for this IP address.
sourceraw docstring

IPV6Addresscljprotocol

ipv4-compatible-address?clj

(ipv4-compatible-address? this)

Utility routine to check if the InetAddress is an IPv4 compatible IPv6 address.

Utility routine to check if the InetAddress is an IPv4 compatible IPv6
address.

scope-idclj

(scope-id this)

Returns the numeric scopeId, if this instance is associated with an interface.

Returns the numeric scopeId, if this instance is associated with an
interface.

scoped-interfaceclj

(scoped-interface this)

Returns the scoped interface, if this instance was created with with a scoped interface.

Returns the scoped interface, if this instance was created with with a
scoped interface.
source

(link-local-address? this)

Utility routine to check if the InetAddress is an link local address.

Utility routine to check if the InetAddress is an link local address.
sourceraw docstring

localhostclj

(localhost)

Returns the address of the local host.

Returns the address of the local host.
sourceraw docstring

loopbackclj

(loopback)

Returns the loopback address.

Returns the loopback address.
sourceraw docstring

loopback-address?clj

(loopback-address? this)

Utility routine to check if the InetAddress is a loopback address.

Utility routine to check if the InetAddress is a loopback address.
sourceraw docstring

mc-global?clj

(mc-global? this)

Utility routine to check if the multicast address has global scope.

Utility routine to check if the multicast address has global scope.
sourceraw docstring

(mc-link-local? this)

Utility routine to check if the multicast address has link scope.

Utility routine to check if the multicast address has link scope.
sourceraw docstring

mc-node-local?clj

(mc-node-local? this)

Utility routine to check if the multicast address has node scope.

Utility routine to check if the multicast address has node scope.
sourceraw docstring

mc-org-local?clj

(mc-org-local? this)

Utility routine to check if the multicast address has organization scope.

Utility routine to check if the multicast address has organization
scope.
sourceraw docstring

mc-site-local?clj

(mc-site-local? this)

Utility routine to check if the multicast address has site scope.

Utility routine to check if the multicast address has site scope.
sourceraw docstring

multicast-address?clj

(multicast-address? this)

Utility routine to check if the InetAddress is an IP multicast address.

Utility routine to check if the InetAddress is an IP multicast address.
sourceraw docstring

reachable?clj

(reachable? this timeout)
(reachable? this net-iface ttl timeout)

Test whether that address is reachable. The units of timeout is milliseconds.

Test whether that address is reachable. The units of `timeout` is
milliseconds.
sourceraw docstring

site-local-address?clj

(site-local-address? this)

Utility routine to check if the InetAddress is a site local address.

Utility routine to check if the InetAddress is a site local address.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close