The RemoteAddress/IP type represents the IP address and port that should be used to communicate with a remote device or devices. The address can be either a unicast address or a broadcast address.
Constructors
|
Arguments
|
IP(address)
|
String address - The IP address of a device in the standard IPv4 or IPv6 notation. Optionally, a port number can be appended using a : followed by the port number (e.g. 10.71.1.31:1234 )
|
IP(address, port)
|
String address - The IP address of a device in the standard IPv4 or IPv6 notation.
Number port - The port on the remote device that should be used to communicate. This does not affect the port Waltz uses locally to communicate with a device, and a single port can be used on multiple devices.
|
Parameters
|
Type
|
Details
|
address
|
String
|
The IP address of the device this object represents.
|
port
|
Number
|
The port to be used to communicate with the device at address .
|
Functions
|
Arguments
|
Returns
|
Details
|
equals(ip)
|
RemoteAddress/IP ip - A RemoteAddress/IP against which to compare equality.
|
Boolean
|
Compares two RemoteAddress/IPs to determine if they represent the same remote device and port.
|