def wire.send

emerging-ezhttp@0.21.0.0 · src/wire.bend:55

import emerging-ezhttp@0.21.0.0/src/wire.bend as Wire
import Base
import bend-kit-wire@0.4.6.1/wire.bend as W

55# send octets, the plain send bounded by the deadline
56def wire.send(secure: Bool, s: Socket, +len: U32, buf: Array<U32>, ms: U32)
57  -> IO(Socket & Result<&1, &1, U32 & String, Unit>):
58  match secure:
59    case True{}:
60      W.tls.send.words(s, len, buf)
61    case False{}:
62      IO.bind(Socket & (U32 & Result<&1, &1, U32 & String, Unit>),
63        Socket & Result<&1, &1, U32 & String, Unit>,
64        W.send.words.deadline(s, len, buf, ms), wire.sent)

Uses (13)

Used by (1)