Liking cljdoc? Tell your friends :D

clj-artnet.impl.protocol.codec.domain.config

Encode/decode for Config family packets: ArtInput, ArtAddress, ArtIpProg, ArtIpProgReply.

Encode/decode for Config family packets: ArtInput, ArtAddress, ArtIpProg, ArtIpProgReply.
raw docstring

artinput-packetclj

(artinput-packet {:keys [bind-index num-ports disabled disable-ports inputs]
                  :or {bind-index 1 num-ports 0}})

Construct a stateless ArtInput map from higher-level options.

Options:

  • :bind-index -> node BindIndex (default 1)
  • :num-ports -> total active ports (default 0)
  • :disabled -> up to 4 booleans in port order
  • :disable-ports -> collection of port indexes to disable
  • :inputs -> raw Input[4] bytes (overrides booleans)

Returns a packet map suitable for encode.

Construct a stateless ArtInput map from higher-level options.

Options:
* `:bind-index`  -> node BindIndex (default 1)
* `:num-ports`   -> total active ports (default 0)
* `:disabled`    -> up to 4 booleans in port order
* `:disable-ports` -> collection of port indexes to disable
* `:inputs`      -> raw Input[4] bytes (overrides booleans)

Returns a packet map suitable for `encode`.
sourceraw docstring

decode-artaddressclj

(decode-artaddress buf)

Decode ArtAddress packet from buffer.

Decode ArtAddress packet from buffer.
sourceraw docstring

decode-artinputclj

(decode-artinput buf)

Decode ArtInput packet from the buffer.

Decode ArtInput packet from the buffer.
sourceraw docstring

decode-artipprogclj

(decode-artipprog buf)

Decode ArtIpProg packet from buffer.

Decode ArtIpProg packet from buffer.
sourceraw docstring

encode-artinput!clj

(encode-artinput! buf {:keys [bind-index num-ports inputs disabled]})

Encode ArtInput packet into a buffer.

Encode ArtInput packet into a buffer.
sourceraw docstring

encode-artipprogreply!clj

(encode-artipprogreply!
  buf
  {:keys [ip subnet-mask gateway port dhcp?]
   :or {subnet-mask [255 0 0 0] gateway [0 0 0 0] port 6454}})

Encode ArtIpProgReply packet into a buffer.

Encode ArtIpProgReply packet into a buffer.
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