+/** A NetAddress of type Hostname */
+export class NetAddress_Hostname extends NetAddress {
+ /**
+ * The hostname on which the node is listening.
+ */
+ public hostname: Hostname;
+ /**
+ * The port on which the node is listening.
+ */
+ public port: number;
+ /* @internal */
+ public constructor(ptr: number) {
+ super(null, ptr);
+ const hostname: number = bindings.LDKNetAddress_Hostname_get_hostname(ptr);
+ const hostname_hu_conv: Hostname = new Hostname(null, hostname);
+ CommonBase.add_ref_from(hostname_hu_conv, this);
+ this.hostname = hostname_hu_conv;
+ this.port = bindings.LDKNetAddress_Hostname_get_port(ptr);
+ }
+}