Liking cljdoc? Tell your friends :D

frereth.cp.message.from-child


blocks-not-sent?clj

(blocks-not-sent? {{:keys [:frereth.cp.message.specs/un-sent-blocks]}
                     :frereth.cp.message.specs/outgoing
                   :as state})

Are there pending blocks from the child that haven't been sent once?

Are there pending blocks from the child that haven't been sent once?
sourceraw docstring

buffer-sizeclj

(buffer-size {:keys [:frereth.cp.message.specs/un-ackd-blocks
                     :frereth.cp.message.specs/un-sent-blocks]
              :as outgoing})
source

build-byte-consumerclj

(build-byte-consumer monitor-id external-log-state bs-or-eof)

Accepts a byte-array from the child.

Accepts a byte-array from the child.
sourceraw docstring

build-individual-blockclj

(build-individual-block buf)
source

byte-consumerclj

(byte-consumer monitor-id
               log-state
               block
               eof?
               buf-size
               bs-or-eof
               {{:keys [:frereth.cp.message.specs/ackd-addr
                        :frereth.cp.message.specs/max-block-length
                        :frereth.cp.message.specs/strm-hwm
                        :frereth.cp.message.specs/un-sent-blocks]
                 :as outgoing}
                  :frereth.cp.message.specs/outgoing
                :keys [:frereth.cp.message.specs/message-loop-name]
                :as state})
source

count-buffered-bytesclj

(count-buffered-bytes blocks)
source

forward-bytes-from-child!clj

(forward-bytes-from-child! monitor-id log-state stream on-completion bs-or-eof)
source

initial-child-monitor-loopclj

(initial-child-monitor-loop {:keys [:frereth.cp.message.specs/message-loop-name]
                             :as state}
                            logger
                            client-waiting-on-response
                            monitor-id
                            child-out
                            stream
                            eof?-atom)
source

monitor-loopclj

(monitor-loop {:keys [:frereth.cp.message.specs/message-loop-name] :as state}
              logger
              monitor-id
              child-out
              stream
              eof?-atom)
source

process-next-bytes-from-child!clj

(process-next-bytes-from-child! monitor-id
                                log-state
                                child-out
                                stream
                                max-to-read
                                on-bytes-forwarded)
source

(read-next-bytes-from-child! monitor-id
                             log-state
                             child-out
                             available-bytes
                             max-to-read)
(read-next-bytes-from-child! monitor-id
                             log-state
                             child-out
                             prefix
                             available-bytes
                             max-to-read)
source

room-for-child-bytes?clj

(room-for-child-bytes? {{:keys [:frereth.cp.message.specs/ackd-addr
                                :frereth.cp.message.specs/strm-hwm]}
                          :frereth.cp.message.specs/outgoing
                        :as state})

Does send-buf have enough space left for any message from child?

Does send-buf have enough space left for any message from child?
sourceraw docstring

start-child-monitor!clj

(start-child-monitor!
  {:keys [:frereth.cp.message.specs/message-loop-name]
   {:keys [:frereth.cp.message.specs/client-waiting-on-response]
    :as flow-control}
     :frereth.cp.message.specs/flow-control
   log-state :frereth.weald.specs/state
   :as initial-state}
  {:keys [:frereth.weald.specs/logger :frereth.cp.message.specs/child-out
          :frereth.cp.message.specs/stream]
   :as io-handle})
source

try-multiple-sendsclj

(try-multiple-sends monitor-id
                    stream
                    bs-or-eof
                    blocker
                    log-state
                    attempts
                    timeout)

The parameters are weird because I refactored it out of a lexical closure

The parameters are weird because I refactored it out of a lexical closure
sourceraw docstring

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

× close