This crate wraps socketpair with AF_UNIX platforms, and emulates this
interface using CreateNamedPipe on Windows.
It has a "stream" interface, which corresponds to SOCK_STREAM and
PIPE_TYPE_BYTE, and a "seqpacket" interface, which corresponds to
SOCK_SEQPACKET and PIPE_TYPE_MESSAGE.
Example
let = socketpair_stream?;
writeln!?;
let mut buf = ;
let n = b.read?;
assert_eq!;
Support for async-std and tokio is temporarily disabled until those crates contain the needed implementations of the I/O safety traits.