def conn.dial.with

bend-kit-http@0.38.2.0 · http.bend:2902

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-wire@0.4.7.0/wire.bend as Wire

2902def conn.dial.with(+ip: String, +port: U32, +ms: U32, +deadline: Nat, +now: Nat, unlimited: Bool) ->
2903  IO(Result<&1, &1, U32 & String, Socket>):
2904  match unlimited:
2905    case True{}:
2906      Wire.connect(ip, port, 0)
2907    case False{}:
2908      conn.dial.time(ip, port, deadline, now, Nat.is_le(deadline, now))

Uses (11)

Used by (1)