Pudu programming language
Menu
API reference

Std.Ip.parse

1 declaration

fn

parse: Str -> Result[Std.Ip.Address, Std.Ip.IpError]

Read an address in either family.

A dotted quad must be exactly four decimal numbers with no leading zeros: 010.0.0.1 is octal to some readers and decimal to others, and a rule that two programs read differently is not a rule. IPv6 admits one ::, and a dotted IPv4 tail in its last 32 bits. A zone suffix (%eth0) is refused, because it names an interface on one machine rather than an address.

Back to Std.IpSearch related declarations