/**
- * An address which can be used to connect to a remote peer
+ * An address which can be used to connect to a remote peer.
*/
@SuppressWarnings("unchecked") // We correctly assign various generic arrays
public class NetAddress extends CommonBase {
}
/**
* A new-style Tor onion address/port on which the peer is listening.
- * To create the human-readable \"hostname\", concatenate ed25519_pubkey, checksum, and version,
+ *
+ * To create the human-readable \"hostname\", concatenate the ED25519 pubkey, checksum, and version,
* wrap as base32 and append \".onion\".
*/
public final static class OnionV3 extends NetAddress {
/**
* Utility method to constructs a new Hostname-variant NetAddress
*/
- public static NetAddress hostname(Hostname hostname, short port) {
+ public static NetAddress hostname(org.ldk.structs.Hostname hostname, short port) {
long ret = bindings.NetAddress_hostname(hostname == null ? 0 : hostname.ptr, port);
Reference.reachabilityFence(hostname);
Reference.reachabilityFence(port);
* Checks if two NetAddresss contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
*/
- public boolean eq(NetAddress b) {
+ public boolean eq(org.ldk.structs.NetAddress b) {
boolean ret = bindings.NetAddress_eq(this.ptr, b == null ? 0 : b.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(b);