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 class
NetAddress.Hostname
A hostname/port on which the peer is listening.static class
NetAddress.IPv4
An IPv4 address/port on which the peer is listening.static class
NetAddress.IPv6
An IPv6 address/port on which the peer is listening.static class
NetAddress.OnionV2
An old-style Tor onion address/port on which the peer is listening.static class
NetAddress.OnionV3
A 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 NetAddress
Result_NetAddressDecodeErrorZ.Result_NetAddressDecodeErrorZ_OK. res
NetAddress[]
Option_CVec_NetAddressZZ.Some. some
NetAddress
Option_NetAddressZ.Some. some
Methods 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 nodeNetAddress
NetAddress. 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 NetAddress
NetAddress. hostname(Hostname hostname, short port)
Utility method to constructs a new Hostname-variant NetAddressstatic NetAddress
NetAddress. ipv4(byte[] addr, short port)
Utility method to constructs a new IPv4-variant NetAddressstatic NetAddress
NetAddress. ipv6(byte[] addr, short port)
Utility method to constructs a new IPv6-variant NetAddressstatic NetAddress
NetAddress. onion_v2(byte[] a)
Utility method to constructs a new OnionV2-variant NetAddressstatic NetAddress
NetAddress. 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 void
PeerManager. broadcast_node_announcement(byte[] rgb, byte[] alias, NetAddress[] addresses)
Generates a signed node_announcement from the given arguments, sending it to all connected peers.boolean
NetAddress. eq(NetAddress b)
Checks if two NetAddresss contain equal inner contents.static Result_NetAddressDecodeErrorZ
Result_NetAddressDecodeErrorZ. ok(NetAddress o)
Creates a new CResult_NetAddressDecodeErrorZ in the success state.void
UnsignedNodeAnnouncement. set_addresses(NetAddress[] val)
List of addresses on which this node is reachablestatic Option_CVec_NetAddressZZ
Option_CVec_NetAddressZZ. some(NetAddress[] o)
Constructs a new COption_CVec_NetAddressZZ containing a crate::c_types::derived::CVec_NetAddressZstatic Option_NetAddressZ
Option_NetAddressZ. some(NetAddress o)
Constructs a new COption_NetAddressZ containing a crate::lightning::ln::msgs::NetAddress
-