Module socket

Source
Expand description

ICMP socket support.

Sockets have an ICMP version as a type parameter, allowing precise types for IP address, etc.

If the use case demands runtime selection of IP versions ala net::IpAddr, where the version is determined at runtime, see SocketPair.

Structsยง

IcmpSocket
An ICMP socket.
SocketConfig
Config for creating sockets.
SocketPair
Holds both an IPv4 and IPv6 socket.