Class: IPAddress

IPAddress

Provides a representation of an IPv4 address.

Members


bytes :Array.<number>

Gets/sets the IP address using an array of octets (e.g. 192.168.0.254 = [192,168,0,254])

Type:
  • Array.<number>
Since:
  • 1.0

str :string

Gets/sets the IP address using the string representation of the IP address in dotted notation (e.g. 192.168.0.254).

Type:
  • string
Since:
  • 1.0

v :number

Gets/sets the IP address using the number representation of the IP address (e.g. 192.168.0.254 = 3232235774)

Type:
  • number

Events


addrSet

Indicates that the IP address has been changed.

Parameters:
Name Type Description
addr number

New IP address in number representation

Since:
  • 1.0