+ /**
+ * The receipient's network address. This adds the option to report a remote IP address
+ * back to a connecting peer using the init message. A node can decide to use that information
+ * to discover a potential update to its public IPv4 address (NAT) and use
+ * that for a node_announcement update message containing the new address.
+ */
+ public get_remote_network_address(): Option_NetAddressZ {
+ const ret: number = bindings.Init_get_remote_network_address(this.ptr);
+ const ret_hu_conv: Option_NetAddressZ = Option_NetAddressZ.constr_from_ptr(ret);
+ CommonBase.add_ref_from(ret_hu_conv, this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * The receipient's network address. This adds the option to report a remote IP address
+ * back to a connecting peer using the init message. A node can decide to use that information
+ * to discover a potential update to its public IPv4 address (NAT) and use
+ * that for a node_announcement update message containing the new address.
+ */
+ public set_remote_network_address(val: Option_NetAddressZ): void {
+ bindings.Init_set_remote_network_address(this.ptr, CommonBase.get_ptr_of(val));
+ }
+