Liking cljdoc? Tell your friends :D

bacure.network


create-mstp-network

(create-mstp-network {:keys [local-network-number mstp-config],
                      :as device-config})

Return an MstpNetwork object, configured with either a slave or a master node for the local-device. This class does not have a dedicated 'builder' like the IP network does, so we'll call its constructor directly.

Return an MstpNetwork object, configured with either a slave or a master node
for the local-device. This class does not have a dedicated 'builder' like the
IP network does, so we'll call its constructor directly.
sourceraw docstring

default-mstp-config

source

get-any-ip

(get-any-ip)

Return the first IPv4 found.

Return the first IPv4 found.
sourceraw docstring

get-broadcast-address

(get-broadcast-address local-ip)

Given a local-ip, return the broadcast address

Given a local-ip, return the broadcast address
sourceraw docstring

get-broadcast-address-of-interface

(get-broadcast-address-of-interface interface)
source

get-interface-from-ip

(get-interface-from-ip ip)

Given an IP address, return the interface.

Given an IP address, return the interface.
sourceraw docstring

get-interfaces

(get-interfaces)

Return the list of interfaces on this machine.

Return the list of interfaces on this machine.
sourceraw docstring

interfaces-and-ips

(interfaces-and-ips)

Return a list of interfaces and their IPs. ({:interface "wlan0", :ips ("192.168.0.2")})

Return a list of interfaces and their IPs.
({:interface "wlan0", :ips ("192.168.0.2")})
sourceraw docstring

ip-network-builder

(ip-network-builder {:keys [broadcast-address local-address
                            local-network-number port reuse-address]})

Return an IP network object.

Return an IP network object.
sourceraw docstring

ipv4-from-interface

(ipv4-from-interface interface)

Return a list of available IPs from the interface. Remove any loopback address.

As BACnet doesn't support IPv6 yet, just keep IPv4.

Return a list of available IPs from the interface. Remove any
loopback address.

As BACnet doesn't support IPv6 yet, just keep IPv4.
sourceraw docstring

mstp-listener-network

(mstp-listener-network receive-npdu-fn node local-network-number)
source

resolve-dns

(resolve-dns IP-or-url)

Return the IP of a given url, or simply return the IP unchanged

Return the IP of a given url, or simply return the IP unchanged
sourceraw docstring

to-bytes

(to-bytes IP-or-url)
source

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

× close