TCP
Basic request/reply, strict ordering, raw bytes, and multi-client broadcast.
Open TCP source →Finite native programs
Choose one transport and one behavior. Every runnable exchange validates its peer messages and exits after the expected work.
Basic request/reply, strict ordering, raw bytes, and multi-client broadcast.
Open TCP source →Framed datagrams, raw datagrams, direct replies, and explicit peer fan-out.
Open UDP source →One shared handler over Unix streams or Windows named pipes.
Open local source →Worker threads accept from cloned handles to one Unix listener.
Open worker source →Wrap an application-supplied, already verified TLS stream without choosing a crypto stack.
Open TLS boundary →Run either language as TCP server or client and print the exact framed ping/pong messages.
Open mixed examples →cargo run --manifest-path rust/node-ipc/Cargo.toml \
--example TCPSocket -- basic server
# second terminal
cargo run --manifest-path rust/node-ipc/Cargo.toml \
--example TCPSocket -- basic clientcargo run --manifest-path rust/node-ipc/Cargo.toml \
--example unixWindowsSocket -- basic server
# second terminal
cargo run --manifest-path rust/node-ipc/Cargo.toml \
--example unixWindowsSocket -- basic clientPowerShell users can place each command on one line. Start the server before its client.
| Target | Selectors | Platforms |
|---|---|---|
TCPSocket | basic, basicSync, rawBuffer, Multi-Client-Broadcast | Linux, macOS, Windows |
UDPSocket | basic, rawBuffer, Multi-Client-Broadcast | Linux, macOS, Windows |
unixWindowsSocket | basic, basicSync, rawBuffer, binaryRawBuffer, Multi-Client-Broadcast | Unix socket or Windows named pipe |
clusterUnixSocket | server, client | Unix only |
TLSSocket | Prints the verified-stream integration boundary | Any native target with caller-supplied TLS |
basicSync demonstrates explicit ordered request/reply; it does not add Node's automatic queue.