java.lang.Object
java.lang.Enum<InboundEstablishState.InboundState>
net.i2p.router.transport.udp.InboundEstablishState.InboundState
- All Implemented Interfaces:
Serializable, Comparable<InboundEstablishState.InboundState>, java.lang.constant.Constable
- Enclosing class:
InboundEstablishState
public static enum InboundEstablishState.InboundStateextends Enum<InboundEstablishState.InboundState>
States for inbound SSU session establishment. Tracks the progression of incoming connection setup.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSuccessful completion, PeerState created and added to transport.We have all the confirmation packets.We have received one but not all the confirmation packets - never happens in practice - see below.We have sent a signed creation packet.We are explicitly failing it.SSU2: We have received a request but the token is bad.We have received an initial request.SSU2: We have sent a retry.SSU2: We have received a token request.Nothing known yet.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static InboundEstablishState.InboundState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
IB_STATE_UNKNOWN
Nothing known yet.IB_STATE_REQUEST_RECEIVED
We have received an initial request.IB_STATE_CREATED_SENT
We have sent a signed creation packet.IB_STATE_CONFIRMED_PARTIALLY
We have received one but not all the confirmation packets - never happens in practice - see below.IB_STATE_CONFIRMED_COMPLETELY
We have all the confirmation packets.IB_STATE_FAILED
We are explicitly failing it.IB_STATE_COMPLETE
Successful completion, PeerState created and added to transport.IB_STATE_TOKEN_REQUEST_RECEIVED
SSU2: We have received a token request.IB_STATE_REQUEST_BAD_TOKEN_RECEIVED
SSU2: We have received a request but the token is bad.IB_STATE_RETRY_SENT
SSU2: We have sent a retry.
Constructor Details
InboundState
private InboundState()
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