Liking cljdoc? Tell your friends :D

roughtime-protocol.client-udp


send-udpclj

(send-udp server-map
          req-bytes
          {:keys [timeout-ms retries verify-src?]
           :or {timeout-ms 1000 retries 2 verify-src? true}})

Send req-bytes to host:port over UDP with retries. opts: :timeout-ms per-attempt receive timeout (default 1000) :retries number of additional attempts after the first (default 2) :verify-src? if true, drop packets not from the resolved IP:port (default true) Returns {:bytes .. :from ..} or throws on failure.

Send req-bytes to host:port over UDP with retries.
opts:
  :timeout-ms   per-attempt receive timeout (default 1000)
  :retries      number of *additional* attempts after the first (default 2)
  :verify-src?  if true, drop packets not from the resolved IP:port (default true)
Returns {:bytes .. :from ..} or throws on failure.
sourceraw docstring

send-udp-onceclj

(send-udp-once addr req timeout-ms)

Send req bytes to addr and attempt to receive one reply within timeout-ms. Returns {:bytes <byte[]> :from <InetSocketAddress>} or nil on timeout.

Send req bytes to addr and attempt to receive one reply within timeout-ms.
Returns {:bytes <byte[]> :from <InetSocketAddress>} or nil on timeout.
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