std1.0.0-beta-7 SafeC docs

std :: sched::io_nb

Function std::tcp_accept_nb

#include <std/sched/io_nb.h> source · definition

int tcp_accept_nb(int listenfd)

Non-blocking accept(): returns a connected client fd (itself set non-blocking), or -1 with errno EAGAIN/EWOULDBLOCK if none is pending yet — the caller should await_fd(listenfd, SCHED_READ) and retry.