+ /**
+ * A hostname/port on which the peer is listening.
+ */
+ public final static class Hostname extends NetAddress {
+ /**
+ * The hostname on which the node is listening.
+ */
+ public final org.ldk.structs.Hostname hostname;
+ /**
+ * The port on which the node is listening.
+ */
+ public final short port;
+ private Hostname(long ptr, bindings.LDKNetAddress.Hostname obj) {
+ super(null, ptr);
+ long hostname = obj.hostname;
+ org.ldk.structs.Hostname hostname_hu_conv = null; if (hostname < 0 || hostname > 4096) { hostname_hu_conv = new org.ldk.structs.Hostname(null, hostname); }
+ hostname_hu_conv.ptrs_to.add(this);
+ this.hostname = hostname_hu_conv;
+ this.port = obj.port;
+ }
+ }