Package net.i2p.router.transport.ntcp
Enum EstablishBase.State
- java.lang.Object
- 
- java.lang.Enum<EstablishBase.State>
- 
- net.i2p.router.transport.ntcp.EstablishBase.State
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<EstablishBase.State>
 - Enclosing class:
- EstablishBase
 
 protected static enum EstablishBase.State extends Enum<EstablishBase.State> 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description CORRUPTIB_INITIB_NTCP2_GOT_PADDINGGot msg 1 incl.IB_NTCP2_GOT_RIGot msg 3 Next state VERIFIEDIB_NTCP2_GOT_XGot Noise part of msg 1 Next state IB_NTCP2_GOT_PADDING or IB_NTCP2_READ_RANDOM on failIB_NTCP2_INITNext state IB_NTCP2_GOT_XIB_NTCP2_READ_RANDOMGot msg 1 and failed AEAD Next state CORRUPTIB_NTCP2_SENT_YSent msg 2 and padding Next state IB_NTCP2_GOT_RIOB_INITVERIFIEDOB: got and verified 4; IB: got and verified 3 and sent 4
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static EstablishBase.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static EstablishBase.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
OB_INITpublic static final EstablishBase.State OB_INIT 
 - 
IB_INITpublic static final EstablishBase.State IB_INIT 
 - 
IB_NTCP2_INITpublic static final EstablishBase.State IB_NTCP2_INIT Next state IB_NTCP2_GOT_X- Since:
- 0.9.36
 
 - 
IB_NTCP2_GOT_Xpublic static final EstablishBase.State IB_NTCP2_GOT_X Got Noise part of msg 1 Next state IB_NTCP2_GOT_PADDING or IB_NTCP2_READ_RANDOM on fail- Since:
- 0.9.36
 
 - 
IB_NTCP2_GOT_PADDINGpublic static final EstablishBase.State IB_NTCP2_GOT_PADDING Got msg 1 incl. padding Next state IB_NTCP2_SENT_Y- Since:
- 0.9.36
 
 - 
IB_NTCP2_SENT_Ypublic static final EstablishBase.State IB_NTCP2_SENT_Y Sent msg 2 and padding Next state IB_NTCP2_GOT_RI- Since:
- 0.9.36
 
 - 
IB_NTCP2_GOT_RIpublic static final EstablishBase.State IB_NTCP2_GOT_RI Got msg 3 Next state VERIFIED- Since:
- 0.9.36
 
 - 
IB_NTCP2_READ_RANDOMpublic static final EstablishBase.State IB_NTCP2_READ_RANDOM Got msg 1 and failed AEAD Next state CORRUPT- Since:
- 0.9.36
 
 - 
VERIFIEDpublic static final EstablishBase.State VERIFIED OB: got and verified 4; IB: got and verified 3 and sent 4
 - 
CORRUPTpublic static final EstablishBase.State CORRUPT 
 
- 
 - 
Method Detail- 
valuespublic static EstablishBase.State[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EstablishBase.State c : EstablishBase.State.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static EstablishBase.State valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
 
-