std:network/IpAddresses
std:network/IpAddresses
Section titled “std:network/IpAddresses”Canonical occurrence:
protos/lib/network/IpAddresses.protos· Protos revision:e99b712ecf658a527b1fe82c8beba2c1286d8dc9.
Construction, parsing, and formatting of canonical IpAddress values; the
IpAddress factory itself is installed by the runtime.
Observable top-level slots
Section titled “Observable top-level slots”This page lists the complete mechanically observable top-level slot inventory required by D067. Authored documentation, when present, is canonical D062 prose; mechanical presence alone does not create a stability or compatibility promise.
format
Section titled “format”Formats an IpAddress: IPv4 as dotted decimal, IPv6 as lowercase hextets
with the leftmost longest run of two or more zero hextets compressed to ::,
and IPv4-mapped IPv6 as ::ffff: followed by dotted decimal.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
address -
Rest parameter: none
-
Source occurrence:
protos/lib/network/IpAddresses.protos:447 -
Exact source page: open in the source browser
Parses numeric IP address text: dotted-decimal IPv4 without leading zeros, or
IPv6 hextets with optional :: compression and a trailing dotted-decimal
IPv4 part. Text containing : is parsed as IPv6. Invalid text signals an
Error.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
text -
Rest parameter: none
-
Source occurrence:
protos/lib/network/IpAddresses.protos:90 -
Exact source page: open in the source browser
Answers the IPv4 IpAddress with octets a.b.c.d; each must be an Integer in
0..255.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
a,b,c,d -
Rest parameter: none
-
Source occurrence:
protos/lib/network/IpAddresses.protos:21 -
Exact source page: open in the source browser
Answers the IPv6 IpAddress with hextets a through h; each must be an Integer
in 0..65535.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
a,b,c,d,e,f,g,h -
Rest parameter: none
-
Source occurrence:
protos/lib/network/IpAddresses.protos:50 -
Exact source page: open in the source browser
Exact module source · Standard-library API · Standard library overview