Module unix

Source
Expand description

Unix Stream implementation with better address semantics for servers.

This module provides a UnixStream type that wraps tokio::net::UnixStream with better address semantics for servers. When a server accepts a connection, it returns the associated SocketAddr along side the stream. On some platforms, this information is not available after the connection is established via UnixStream::peer_addr. This module provides a way to retain this information for the lifetime of the stream.

Structsยง

UnixAddr
Connection address for a unix domain socket.
UnixListenerserver
A Unix socket which can accept connections from other Unix sockets.
UnixStream
A Unix Stream, wrapping tokio::net::UnixStream with better address semantics for servers.