Method Val.Inet()->create()


Method create

Val.Inet Val.Inet(int ip, void|int masklen)
Val.Inet Val.Inet()

Parameter ip

An IPv4 or IPv6 ip address.

Parameter masklen

Defines the netmask, always in the range between 0 and 128; i.e. for IPv4 addresses you should add 12 * 8 to the actual IPv4-masklen.


Method create

Val.Inet Val.Inet(string ip)

Parameter ip

A string defining an IPv4 or IPv6 address with an optional masklen attached. If the address is in IPv6 notation, the range of the masklen is expected to be between 0 and 128. If the address is in IPv4 notation, the range of the masklen is expected to be between 0 and 32.