core_net/lib.rs
1//! Networking primitives for IP communication.
2//!
3//! This module provides types for IP and socket addresses.
4//!
5//! # Organization
6//!
7//! * [`IpAddr`] represents IP addresses of either IPv4 or IPv6; [`Ipv4Addr`] and
8//! [`Ipv6Addr`] are respectively IPv4 and IPv6 addresses
9//! * [`SocketAddr`] represents socket addresses of either IPv4 or IPv6; [`SocketAddrV4`]
10//! and [`SocketAddrV6`] are respectively IPv4 and IPv6 socket addresses
11
12
13pub use self::ip_addr::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope};
14pub use self::parser::AddrParseError;
15pub use self::socket_addr::{SocketAddr, SocketAddrV4, SocketAddrV6};
16
17mod ip_addr;
18mod parser;
19mod socket_addr;