Uses of Class
org.ldk.structs.NetAddress
-
Packages that use NetAddress Package Description org.ldk.structs -
-
Uses of NetAddress in org.ldk.structs
Subclasses of NetAddress in org.ldk.structs Modifier and Type Class Description static classNetAddress.HostnameA hostname/port on which the peer is listening.static classNetAddress.IPv4An IPv4 address/port on which the peer is listening.static classNetAddress.IPv6An IPv6 address/port on which the peer is listening.static classNetAddress.OnionV2An old-style Tor onion address/port on which the peer is listening.static classNetAddress.OnionV3A new-style Tor onion address/port on which the peer is listening.Fields in org.ldk.structs declared as NetAddress Modifier and Type Field Description NetAddressResult_NetAddressDecodeErrorZ.Result_NetAddressDecodeErrorZ_OK. resNetAddress[]Option_CVec_NetAddressZZ.Some. someNetAddressOption_NetAddressZ.Some. someMethods in org.ldk.structs that return NetAddress Modifier and Type Method Description NetAddress[]NodeAnnouncementInfo. addresses()Internet-level addresses via which one can connect to the nodeNetAddressNetAddress. clone()Creates a copy of the NetAddressNetAddress[]UnsignedNodeAnnouncement. get_addresses()List of addresses on which this node is reachable Returns a copy of the field.static NetAddressNetAddress. hostname(Hostname hostname, short port)Utility method to constructs a new Hostname-variant NetAddressstatic NetAddressNetAddress. ipv4(byte[] addr, short port)Utility method to constructs a new IPv4-variant NetAddressstatic NetAddressNetAddress. ipv6(byte[] addr, short port)Utility method to constructs a new IPv6-variant NetAddressstatic NetAddressNetAddress. onion_v2(byte[] a)Utility method to constructs a new OnionV2-variant NetAddressstatic NetAddressNetAddress. onion_v3(byte[] ed25519_pubkey, short checksum, byte version, short port)Utility method to constructs a new OnionV3-variant NetAddressMethods in org.ldk.structs with parameters of type NetAddress Modifier and Type Method Description voidPeerManager. broadcast_node_announcement(byte[] rgb, byte[] alias, NetAddress[] addresses)Generates a signed node_announcement from the given arguments, sending it to all connected peers.booleanNetAddress. eq(NetAddress b)Checks if two NetAddresss contain equal inner contents.static Result_NetAddressDecodeErrorZResult_NetAddressDecodeErrorZ. ok(NetAddress o)Creates a new CResult_NetAddressDecodeErrorZ in the success state.voidUnsignedNodeAnnouncement. set_addresses(NetAddress[] val)List of addresses on which this node is reachablestatic Option_CVec_NetAddressZZOption_CVec_NetAddressZZ. some(NetAddress[] o)Constructs a new COption_CVec_NetAddressZZ containing a crate::c_types::derived::CVec_NetAddressZstatic Option_NetAddressZOption_NetAddressZ. some(NetAddress o)Constructs a new COption_NetAddressZ containing a crate::lightning::ln::msgs::NetAddress
-