Enum Class AddressSource

java.lang.Object
java.lang.Enum<AddressSource>
org.cloudburstmc.netty.channel.nethernet.AddressSource
All Implemented Interfaces:
Serializable, Comparable<AddressSource>, Constable

public enum AddressSource extends Enum<AddressSource>
Where an address a NetherNet channel reports came from, see SourcedAddress.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Handed in by the host along with an offer, which says nothing of where it got it.
    The remote side of the selected ICE pair, when no PROXY protocol relay is known to have brought it.
    The remote side of the selected ICE pair, declared by a PROXY protocol relay on the ICE port.
    The source of the first STUN check an NXS admission accepted.
    The peer of the signaling itself: the connection an offer came over, or the endpoint a client dialed.
    Taken from X-Forwarded-For, sent by a trusted forwarder in front of signaling.
    The source of the LAN discovery datagram an offer came in, which anyone on the network can forge.
    Declared in a PROXY protocol header by a trusted proxy in front of signaling.
    The selected ICE pair runs through what the peer says is one of its TURN relays, so this is that relay.
    Nothing said where the peer is, as with Xbox signaling or an assisted NXS join, so this is the wildcard.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static AddressSource[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SIGNALING

      public static final AddressSource SIGNALING
      The peer of the signaling itself: the connection an offer came over, or the endpoint a client dialed.
    • SIGNALING_PROXY_PROTOCOL

      public static final AddressSource SIGNALING_PROXY_PROTOCOL
      Declared in a PROXY protocol header by a trusted proxy in front of signaling.
    • SIGNALING_FORWARDED_FOR

      public static final AddressSource SIGNALING_FORWARDED_FOR
      Taken from X-Forwarded-For, sent by a trusted forwarder in front of signaling. The header names no port, so the port is the forwarder's connection's.
    • SIGNALING_LAN

      public static final AddressSource SIGNALING_LAN
      The source of the LAN discovery datagram an offer came in, which anyone on the network can forge.
    • HOST

      public static final AddressSource HOST
      Handed in by the host along with an offer, which says nothing of where it got it.
    • NXS_ADMISSION

      public static final AddressSource NXS_ADMISSION
      The source of the first STUN check an NXS admission accepted. An assisted NXS join sees only the candidates the client claims, so it has none.
    • ICE

      public static final AddressSource ICE
      The remote side of the selected ICE pair, when no PROXY protocol relay is known to have brought it.
    • ICE_PROXY_PROTOCOL

      public static final AddressSource ICE_PROXY_PROTOCOL
      The remote side of the selected ICE pair, declared by a PROXY protocol relay on the ICE port.
    • TURN

      public static final AddressSource TURN
      The selected ICE pair runs through what the peer says is one of its TURN relays, so this is that relay.
    • UNKNOWN

      public static final AddressSource UNKNOWN
      Nothing said where the peer is, as with Xbox signaling or an assisted NXS join, so this is the wildcard.
  • Method Details

    • values

      public static AddressSource[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AddressSource valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null