[][src]Module palaver::socket

Socket-related functionality

Structs

SockFlag

Akin to nix::sys::socket::SockFlag but avail cross-platform

Enums

AddressFamily

These constants specify the protocol family to be used in socket and socketpair

SockProtocol

Constants used in socket and socketpair to specify the protocol to use.

SockType

These constants are used to specify the communication semantics when creating a socket with socket()

Functions

accept

Like accept4, falls back to non-atomic accept

is_connected

Intended to check for completion after connect(2) has returned EINPROGRESS.

socket

Falls back to non-atomic if SOCK_NONBLOCK/SOCK_CLOEXEC unavailable

unreceived

Count of bytes that have yet to be read from a socket

unsent

Count of bytes that have been written to a socket, but have yet to be acked by the remote end. Works on Android, Linux, macOS, iOS, FreeBSD and NetBSD, returns 0 on others.