Expand description

Communication between endpoints.

The socket module deals with network endpoints and buffering. It provides interfaces for accessing buffers of data, and protocol state machines for filling and emptying these buffers.

The programming interface implemented here differs greatly from the common Berkeley socket interface. Specifically, in the Berkeley interface the buffering is implicit: the operating system decides on the good size for a buffer and manages it. The interface implemented by this module uses explicit buffering: you decide on the good size for a buffer, allocate it, and let the networking stack use it.

Structs

IPv4 configuration data provided by the DHCP server.

A ICMP socket

A raw IP socket.

A Transmission Control Protocol socket.

A User Datagram Protocol socket.

Enums

Return value for the Dhcpv4Socket::poll function

Type of endpoint to bind the ICMP socket to. See IcmpSocket::bind for more details.

A network socket.

The state of a TCP socket, according to RFC 793.

Traits

A conversion trait for network sockets.

Type Definitions

An ICMP packet metadata.

An ICMP packet ring buffer.

A UDP packet metadata.

A UDP packet ring buffer.

A TCP socket ring buffer.

A UDP packet metadata.

A UDP packet ring buffer.