Initializes a new instance of the SingleHostAddr relay.
Optional
port: numberThe port of the relay.
Optional
ipv4: stringThe IP v4 address of the relay.
Optional
ipv6: stringThe IP v6 address of the relay.
Private
#ipPrivate
#ipPrivate
#originalPrivate
#portCreates a Core RelayByAddress object from the current SingleHostAddr object.
The Core RelayByAddress object.
Static
fromDeserializes the SingleHostAddr from a CBOR byte array.
The new SingleHostAddr instance.
The CBOR encoded SingleHostAddr object.
Static
fromCreates a SingleHostAddr object from the given Core RelayByAddress object.
The core RelayByAddress object.
Generated using TypeDoc
This relay points to a single host via its ipv4/ipv6 address and a given port.