Liking cljdoc? Tell your friends :D

frereth.cp.message.helpers

Top-level message helpers

Top-level message helpers
raw docstring

drop-ackd!clj

(drop-ackd! {:keys [:frereth.cp.message.specs/message-loop-name]
             {:keys [:frereth.cp.message.specs/ackd-addr
                     :frereth.cp.message.specs/send-eof
                     :frereth.cp.message.specs/un-ackd-blocks]
              :as outgoing}
               :frereth.cp.message.specs/outgoing
             :as state})
source

earliest-block-timeclj

(earliest-block-time message-loop-name log-state un-acked-blocks)

Calculate the earliest time

Based on earliestblocktime_compute, in lines 138-153

Calculate the earliest time

Based on earliestblocktime_compute, in lines 138-153
sourceraw docstring

flag-ackd-blocksclj

(flag-ackd-blocks start
                  stop
                  state
                  {:keys [:frereth.cp.message.specs/start-pos
                          :frereth.cp.message.specs/transmissions
                          :frereth.cp.message.specs/buf]
                   :as block})
source

mark-ackd-by-addrclj

(mark-ackd-by-addr {{:keys [:frereth.cp.message.specs/un-ackd-blocks
                            :frereth.cp.message.specs/send-eof
                            :frereth.cp.message.specs/send-eof-acked
                            :frereth.cp.message.specs/strm-hwm]}
                      :frereth.cp.message.specs/outgoing
                    :keys [:frereth.cp.message.specs/message-loop-name]
                    :as state}
                   start
                   stop)

Mark sent blocks between positions start and stop as ACK'd

Based [cleverly] on acknowledged(), running from lines 155-185

Mark sent blocks between positions start and stop as ACK'd

Based [cleverly] on acknowledged(), running from lines 155-185
sourceraw docstring

mark-block-ackdclj

(mark-block-ackd {:keys [:frereth.cp.message.specs/un-ackd-blocks] :as outgoing}
                 block)

Flag block ACK'd in the un-ackd set

Flag block ACK'd in the un-ackd set
sourceraw docstring

read-intclj

(read-int bb)
source

read-longclj

(read-long bb)
source

read-shortclj

(read-short bb)
source

read-uintclj

(read-uint bb)
source

read-ulongclj

(read-ulong bb)
source

read-ushortclj

(read-ushort bb)
source

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

× close