Networking primitives for TCP/UDP communication.
This module provides networking functionality for the Transmission Control and User Datagram Protocols, as well as types for IP and socket addresses. It has been ported from std::net to remove the dependency on std.
This crate is a WIP, issues, feedback and PRs are welcome as long as they follow the theme of “std::net” clone.
IpAddrrepresents IP addresses of either IPv4 or IPv6;
Ipv6Addrare respectively IPv4 and IPv6 addresses
TcpStreamprovide functionality for communication over TCP
UdpSocketprovides functionality for communication over UDP
SocketAddrrepresents socket addresses of either IPv4 or IPv6;
SocketAddrV6are respectively IPv4 and IPv6 socket addresses
ToSocketAddrsis a trait that used for generic address resolution when interacting with networking objects like
- Other types are return or parameter types for various methods in this module
An IPv4 address.
An IPv6 address.
An IPv4 socket address.
An IPv6 socket address.
An IP address, either IPv4 or IPv6.
An internet socket address, either IPv4 or IPv6.