State schema and initialization (Art-Net 4).
State schema and initialization (Art-Net 4).
(callbacks state)Returns callbacks from state.
Returns callbacks from state.
Default failsafe timeout (2.5s).
Default failsafe timeout (2.5s).
Default merge source timeout (2.5s).
Default merge source timeout (2.5s).
Default sync buffer TTL (1s).
Default sync buffer TTL (1s).
(get-peer state peer-key)Returns peer entry by key.
Returns peer entry by key.
(inc-stat state stat-key)Increments statistics counter.
Increments statistics counter.
(initial-dmx-state)(initial-dmx-state config)Creates initial DMX state.
Options: :sync - map, {:mode :immediate|:art-sync, :buffer-ttl-ns long} :failsafe - map, {:enabled? bool, :idle-timeout-ns long}
Creates initial DMX state.
Options:
:sync - map, {:mode :immediate|:art-sync, :buffer-ttl-ns long}
:failsafe - map, {:enabled? bool, :idle-timeout-ns long}(initial-state)(initial-state config)Creates initial protocol state.
Options: :node - map, ArtPollReply fields :network - map, Network configuration :callbacks - map, {:dmx fn :sync fn :rdm fn} :dmx - map, DMX config :rdm - map, RDM config
Creates initial protocol state.
Options:
:node - map, ArtPollReply fields
:network - map, Network configuration
:callbacks - map, {:dmx fn :sync fn :rdm fn}
:dmx - map, DMX config
:rdm - map, RDM config(network-config state)Returns network configuration from state.
Returns network configuration from state.
(node-config state)Returns node configuration from state.
Returns node configuration from state.
(peer-key sender)Returns peer key [host-str port] from sender.
Returns peer key [host-str port] from sender.
(remember-peer state sender timestamp)Updates peer entry in state.
Updates peer entry in state.
(update-sequence state)Increments DMX sequence number (wraps at 255). Returns [state next-seq].
Increments DMX sequence number (wraps at 255). Returns [state next-seq].
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 |