def wire.recv

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

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

40# the next octets a socket has received, packed four to a word
41def wire.recv(secure: Bool, s: Socket, ms: U32)
42  -> IO(Socket & Result<&1, &1, U32 & String, U32 & Array<U32>>):
43  match secure:
44    case True{}:
45      W.tls.recv.words(s, wire.max(), ms)
46    case False{}:
47      W.recv.words(s, wire.max(), ms)

Uses (11)

Used by (1)