Module net
Networking primitives for IP communication.
This module provides types for IP and socket addresses.
Organization
IpAddrrepresents IP addresses of either IPv4 or IPv6;Ipv4AddrandIpv6Addrare respectively IPv4 and IPv6 addressesSocketAddrrepresents socket addresses of either IPv4 or IPv6;SocketAddrV4andSocketAddrV6are respectively IPv4 and IPv6 socket addresses
Structs
- AddrParseError An error which can be returned when parsing an IP address or a socket address.
- Ipv4Addr An IPv4 address.
- Ipv6Addr An IPv6 address.
- SocketAddrV4 An IPv4 socket address.
- SocketAddrV6 An IPv6 socket address.
Enums
- IpAddr An IP address, either IPv4 or IPv6.
- Ipv6MulticastScope Scope of an [IPv6 multicast address] as defined in [IETF RFC 7346 section 2].
- SocketAddr An internet socket address, either IPv4 or IPv6.