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#![stable(feature = "ip_in_core", since = "1.77.0")]
13
14#[stable(feature = "rust1", since = "1.0.0")]
15pub use self::ip_addr::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope};
16#[stable(feature = "rust1", since = "1.0.0")]
17pub use self::parser::AddrParseError;
18#[stable(feature = "rust1", since = "1.0.0")]
19pub use self::socket_addr::{SocketAddr, SocketAddrV4, SocketAddrV6};
20
21mod display_buffer;
22mod ip_addr;
23mod parser;
24mod socket_addr;
25