Class NetherNetAddress

java.lang.Object
java.net.SocketAddress
org.cloudburstmc.netty.channel.nethernet.config.NetherNetAddress
All Implemented Interfaces:
Serializable

public class NetherNetAddress extends SocketAddress
The address of a NetherNet peer, which is its NetworkID.

A NetworkID is an opaque string. It is currently a 64-bit unsigned integer written in decimal, but nothing may depend on that: the length, character set and range are all free to change, and a Realms peer already uses a different shape.

See Also:
  • Constructor Details

    • NetherNetAddress

      public NetherNetAddress(String networkId)
      Parameters:
      networkId - The peer's NetworkID, as the signaling reported it
  • Method Details

    • getNetworkId

      public String getNetworkId()
      Returns:
      The NetworkID
    • toString

      public String toString()
      Overrides:
      toString in class Object