Enum Class AddressSource
- All Implemented Interfaces:
Serializable,Comparable<AddressSource>,Constable
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 ConstantsEnum ConstantDescriptionHanded 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 TypeMethodDescriptionstatic AddressSourceReturns the enum constant of this class with the specified name.static AddressSource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIGNALING
The peer of the signaling itself: the connection an offer came over, or the endpoint a client dialed. -
SIGNALING_PROXY_PROTOCOL
Declared in a PROXY protocol header by a trusted proxy in front of signaling. -
SIGNALING_FORWARDED_FOR
Taken from X-Forwarded-For, sent by a trusted forwarder in front of signaling. -
SIGNALING_LAN
The source of the LAN discovery datagram an offer came in, which anyone on the network can forge. -
HOST
Handed in by the host along with an offer, which says nothing of where it got it. -
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
The remote side of the selected ICE pair, when no PROXY protocol relay is known to have brought it. -
ICE_PROXY_PROTOCOL
The remote side of the selected ICE pair, declared by a PROXY protocol relay on the ICE port. -
TURN
The selected ICE pair runs through what the peer says is one of its TURN relays, so this is that relay. -
UNKNOWN
Nothing said where the peer is, as with Xbox signaling or an assisted NXS join, so this is the wildcard.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-