Class EndpointAddress
java.lang.Object
org.cloudburstmc.netty.util.nethernet.EndpointAddress
Numeric endpoint parsing and classification, shared by the signaling paths. No DNS or reachability claims.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanadvertisable(InetAddress address, boolean localDevelopment) Whether an address is worth publishing.static InetAddressReads an IP literal, never a name, so that no lookup can block or leave the host.static InetSocketAddressparseEndpoint(String value) ReadsIPv4:portor[IPv6]:port, or a bare IP literal, bracketed or not, as port 0.static EndpointAddress.Scopescope(InetAddress address) Where an address sits, per the IANA special-purpose registries reviewed 2026-09-07.
-
Method Details
-
parse
Reads an IP literal, never a name, so that no lookup can block or leave the host.- Throws:
UnknownHostException
-
parseEndpoint
ReadsIPv4:portor[IPv6]:port, or a bare IP literal, bracketed or not, as port 0. Never a name.- Throws:
IllegalArgumentException- If the value is none of those
-
scope
Where an address sits, per the IANA special-purpose registries reviewed 2026-09-07. -
advertisable
Whether an address is worth publishing. A private, carrier grade NAT or unique local address is, since a peer on the same network or overlay reaches it; loopback only behind a proxy.
-