Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions IpAddress.parse

1
2
3
4
5
6
7
module juptune.event.io;

static Result parse(
    IpAddress ip, 
    const const char[] address, 
    ushort defaultPort = cast(ushort)0u
);

Documentation

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.

Params

Throws

IpAddress.Error.invalidAddressif addresscould not be parsed.

Returns

A Result