def Usock.listen
import cswap-bend-cli@0.1.0.0/server.bend as Serverimport Base
15# A foreign effect: a non-blocking listening unix socket at `path` (mode 0600);
16# a stale socket file there is replaced, any other file is an error. The
17# Listener takes TCP.accept, and the sockets it accepts take TCP.recv/send.
18def Usock.listen(path: String) -> IO(Result<&1, &1, U32 & String, Listener>):
19 import "./effs/usock.c"
20 import "./effs/usock.js"