1234567module juptune.event.io;
static Result parse(
IpAddress ip,
const const char[] address,
ushort defaultPort = cast(ushort)0u
);
Parses an IPv4 or IPv6 address string into an IpAddressobject.
Addresses can either be a raw address, or a raw address with a port in the IP version's standard form.
Implementation Note: Currently this function uses inet_aton and inet_pton for the raw address parsing.
IpAddress.Error.invalidAddressif addresscould not be parsed.
A Result