std.unix - ZZ
TCP networking with binary-safe transfers, real shutdown, TLS (rustls), and Unix-domain sockets. Compiled patterns are opaque handles; all fallible ops return Result<_, str>.
import std.netUnix sockets
Section titled “Unix sockets”import std.net
func main() -> Result<int, str> { u := net.unix_connect("/tmp/app.sock", 5000)? u.write("hello\n")? u.close()? return .ok(0)}Unix: unix_connect, unix_listen, unix_accept, unix_listener_close, plus unix.* method aliases (write, read, close, shutdown, timeouts).
API reference
Section titled “API reference”13 entries. Signatures come from the compiler’s own FuncSig table, so they match the runtime exactly; descriptions come from the module guide.
See also
Section titled “See also”std.http— An HTTP server and client: routing, requests, responses, middleware and static files.std.net— TCP sockets: connect, listen, accept and framed reads.std.tls— TLS sockets and listeners layered on top of std.net.
Full index: API reference · Standard library