~/bend-docscommunity

wire.bend relies on unsafe/foreign

raw source on the hub · import 0x0545bed9af5dcfee943e4966a207d495/wire.bend as Wire

1 import
import Base

Effects (foreign code)

effect recv source · line 7 · raw

@sock:Socket -> @max:U32 -> IO(Pair(Socket, Result<&1, &1, Pair(U32, String), String>))

foreign: effs/wire.c, effs/wire.js

effect send source · line 12 · raw

@sock:Socket -> @data:String -> IO(Pair(Socket, Result<&1, &1, Pair(U32, String), Unit>))

foreign: effs/wire.c, effs/wire.js

effect recv_from source · line 17 · raw

@sock:Socket -> @max:U32 -> IO(Pair(Socket, Result<&1, &1, Pair(U32, String), Pair(String, Pair(U32, String))>))

foreign: effs/wire.c, effs/wire.js

effect send_to source · line 22 · raw

@sock:Socket -> @host:String -> @port:U32 -> @data:String -> IO(Pair(Socket, Result<&1, &1, Pair(U32, String), Unit>))

foreign: effs/wire.c, effs/wire.js