Liking cljdoc? Tell your friends :D

clj-artnet.impl.shell.net

Utilities for Art-Net network I/O, including address coercion and channel configuration.

Provides helpers for java.net.InetAddress and java.nio.channels.DatagramChannel setup, isolated from protocol logic.

Utilities for Art-Net network I/O, including address coercion and channel configuration.

Provides helpers for java.net.InetAddress and java.nio.channels.DatagramChannel
setup, isolated from protocol logic.
raw docstring

->socket-addressclj

(->socket-address {:keys [host port]})

Coerces {:host ... :port ...} map to InetSocketAddress. Defaults port to 6454 (0x1936) if nil.

Coerces {:host ... :port ...} map to InetSocketAddress.
Defaults port to 6454 (0x1936) if nil.
sourceraw docstring

as-inet-addressclj

(as-inet-address host)

Coerces host representation to InetAddress.

Accepts InetAddress, String, or nil (defaults to 0.0.0.0).

Coerces host representation to InetAddress.

Accepts InetAddress, String, or nil (defaults to 0.0.0.0).
sourceraw docstring

default-artnet-portclj

Default Art-Net UDP port (0x1936 = 6454).

Default Art-Net UDP port (0x1936 = 6454).
sourceraw docstring

limited-broadcast-address?clj

(limited-broadcast-address? addr)

Returns true if addr is the limited broadcast address 255.255.255.255.

Returns true if addr is the limited broadcast address 255.255.255.255.
sourceraw docstring

open-channelclj

(open-channel {:keys [bind broadcast? reuse-address?]
               :or {broadcast? true reuse-address? true}})

Opens and configures a DatagramChannel for Art-Net I/O.

Options:

  • :bind -> Bind address map {:host ... :port ...}
  • :broadcast? -> Enable SO_BROADCAST (default true)
  • :reuse-address? -> Enable SO_REUSEADDR (default true)
Opens and configures a DatagramChannel for Art-Net I/O.

Options:
- :bind           -> Bind address map {:host ... :port ...}
- :broadcast?     -> Enable SO_BROADCAST (default true)
- :reuse-address? -> Enable SO_REUSEADDR (default true)
sourceraw docstring

sender-from-socketclj

(sender-from-socket addr)

Extracts sender info {:host ... :port ...} from a SocketAddress. Returns nil if address is not an InetSocketAddress.

Extracts sender info {:host ... :port ...} from a SocketAddress.
Returns nil if address is not an InetSocketAddress.
sourceraw 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