Skip to main content

Module socket

Module socket 

Source
Expand description

Types and operations related to sockets.

Structs§

Connected
Marker type for sockets bound to a specific remote.
Open
Marker type for sockets not bound to a specific remote.
RecvResult
Results from a receive operation.
SendTimestampToken
Token used to recognize the corresponding send timestamp for a split send operation.
Socket
A UDP network socket.
TimestampData
Timestamps on a message returned by a socket.

Enums§

GeneralTimestampMode
A timestamp mode usable on all sockets.
InterfaceTimestampMode
A timestamp mode for a specific hardware interface.

Functions§

connect_address
Open a socket connected to the given remote address.
open_interface_ethernet
Open a network interface for ethernet traffic.
open_interface_udp
Open a network interface for udp traffic over both ipv4 and ipv6
open_interface_udp4
Open a network interface for udp traffic over ipv4
open_interface_udp6
Open a network interface for udp traffic over ipv6
open_ip
Open a socket listening to a given ip address.
open_ipv4
Open an ipv4 specific socket listening to a given ip address.
open_ipv6
Open an ipv6 specific socket listening to a given ip address.