0.2.0 Preview 1 · Frozen documentation
AddressFamily
Identifies an exact numeric IP address representation. Families do not imply reachability, DNS policy or native sockaddr layout. IPv4-mapped IPv6 remains IPv6; values are not combinable flags.
Sn is under heavy development. Reference extracted from this release’s bundled standard library. Public API examples are not an exhaustive compatibility test. Read the matching release guide for tested workflows and limitations. Read the status →
Module std.net
import std.net;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
AddressFamily
pub enum AddressFamilyIdentifies an exact numeric IP address representation. Families do not imply reachability, DNS policy or native sockaddr layout. IPv4-mapped IPv6 remains IPv6; values are not combinable flags.
AddressFamily.IPv4
IPv4;Four network-order bytes.
AddressFamily.IPv6
IPv6;Sixteen network-order bytes with explicit scope.
Documentation snapshot: October 24, 2026 About versions ↗