std1.0.0-beta-7 SafeC docs

std :: ipc::uds

Function std::uds_connect_nb

#include <std/ipc/uds.h> source · definition

int uds_connect_nb(const &char path)

socket()+connect() to 'path', non-blocking: connect() on a non-blocking socket returns immediately with EINPROGRESS rather than waiting for the handshake — the caller should await_fd(fd, SCHED_WRITE) and treat the fd becoming writable as "connect finished". Returns the socket fd, or -1 on immediate failure.