Crate posix_socket

Source
Expand description

Thin wrapper around POSIX sockets.

The standard library sockets are good for dealing with TCP, UDP and Unix streaming and datagram sockets. However, for other sockets, you will get no help from the standard library.

Additionally, the standard library sockets don’t always expose all underlying features of the sockets. For example, you can not send file descriptors over the standard library sockets without resorting to libc.

This library intends to expose the POSIX socket API to Rust without cutting features. It is currently still a work in progress.

Modules§

ancillary

Structs§

Inet4SocketAddress
IPv4 socket address.
Inet6SocketAddress
IPv6 socket address.
Socket
A POSIX socket.
SocketAddress
Generic socket address, large enough to hold any valid address.
UnixSocketAddress
Unix socket address.

Traits§

AsSocketAddress
A type that is binary compatible with a socket address.
GenericSocketAddress
A socket address that supports multiple address families at runtime.
SpecificSocketAddress
A socket address that only supports one specific family.

Functions§

disable_sigpipe
Disable SIGPIPE for the current process.

Type Aliases§

Inet4Socket
Inet6Socket
UnixSocket