pub fn socketpair() -> Result<(UnixStreamFd, UnixStreamFd), CoreError>Expand description
Create a paired, non-blocking connected Unix stream socket set.
Both endpoints are SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC and owned
by the caller. Useful for tests and in-process pipe-style channels where a
full bind/connect round-trip is unnecessary.
ยงErrors
EAFNOSUPPORT:AF_UNIXis unavailable.EMFILE/ENFILE: Process or system file descriptor limit reached.