Liking cljdoc? Tell your friends :D

frereth.cp.client.cookie


(decrypt-actual-cookie {:keys [:frereth.cp.shared/packet
                               :frereth.cp.client.state/server-security
                               :frereth.cp.client.state/shared-secrets]
                        log-state :frereth.weald.specs/state
                        :as this}
                       {:keys [:frereth.cp.shared.templates/client-extension
                               :frereth.cp.shared.templates/client-nonce-suffix
                               :frereth.cp.shared.templates/cookie
                               :frereth.cp.shared.templates/header
                               :frereth.cp.shared.templates/server-extension]
                        :as rcvd})

(decrypt-cookie-packet {:keys [:frereth.cp.shared/extension
                               :frereth.cp.shared/packet
                               :frereth.cp.client.state/server-extension]
                        log-state :frereth.weald.specs/state
                        :as this})

do-received-responseclj

(do-received-response
  {log-state :frereth.weald.specs/state
   :keys [:frereth.weald.specs/logger :frereth.cp.client.state/server-security]
   :as this}
  {:keys [:host :message :port] :or {message (byte-array 0)} :as cookie})

Hello triggers this (via wait-for-cookie) when it hears back from a Server

Hello triggers this (via wait-for-cookie) when it hears back from a Server
raw docstring

expected-sender?clj

(expected-sender? {:keys [:frereth.cp.shared.specs/srvr-port
                          :frereth.cp.shared.specs/srvr-ip]}
                  host
                  port)

Did the Cookie we just received come from the expected server?

Did the Cookie we just received come from the expected server?
raw docstring

servers-polledclj

(servers-polled {log-state :frereth.weald.specs/state
                 logger :frereth.weald.specs/logger
                 cookie :frereth.cp.shared.specs/network-packet
                 :as this})

Got back a cookie. Respond with an Initiate

Got back a cookie. Respond with an Initiate
raw docstring

wait-for-cookie!clj

(wait-for-cookie! {:keys [:frereth.weald.specs/logger
                          :frereth.cp.client.state/chan<-server]
                   log-state :frereth.weald.specs/state
                   :as this}
                  timeout
                  send-success)

Pulls Cookie Packet from the wire, then triggers the response

Pulls Cookie Packet from the wire, then triggers the response
raw docstring

wrap-receivedclj

(wrap-received {log-state :frereth.weald.specs/state
                :keys [:frereth.weald.specs/logger]
                :as this}
               incoming)

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

× close