def connect
import mylsm-lsm-store@0.6.0.1/src/coordinator/UnixSocketIo.bend as UnixSocketIoimport Base
242# Connects one client socket descriptor to a validated local endpoint path.
243def connect(
244 client: File,
245 path: String
246) -> IO(File & Result<&1, &1, Error, Unit>):
247 do IO<File & Result<&1, &1, Error, Unit>>:
248 pair : File & Result<&1, &1, U32 & String, Unit> <-
249 unix_socket_connect(client, path)
250 return classify_file_unit(pair)