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 NetAddressNetAddress. clone()Creates a copy of the NetAddressNetAddress[]NodeAnnouncementInfo. get_addresses()Internet-level addresses via which one can connect to the node Returns a copy of the field.NetAddress[]UnsignedNodeAnnouncement. get_addresses()List of addresses on which this node is reachable Returns a copy of the field.static NetAddressNetAddress. hostname(NetAddress.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 voidChannelManager. broadcast_node_announcement(byte[] rgb, byte[] alias, NetAddress[] addresses)Regenerates channel_announcements and generates a signed node_announcement from the given arguments, providing them in corresponding events via [`get_and_clear_pending_msg_events`], if at least one public channel has been confirmed on-chain.static NodeAnnouncementInfoNodeAnnouncementInfo. of(NodeFeatures features_arg, int last_update_arg, byte[] rgb_arg, NodeAlias alias_arg, NetAddress[] addresses_arg, NodeAnnouncement announcement_message_arg)Constructs a new NodeAnnouncementInfo given each fieldstatic Result_NetAddressDecodeErrorZResult_NetAddressDecodeErrorZ. ok(NetAddress o)Creates a new CResult_NetAddressDecodeErrorZ in the success state.voidNodeAnnouncementInfo. set_addresses(NetAddress[] val)Internet-level addresses via which one can connect to the nodevoidUnsignedNodeAnnouncement. 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
-