class OutboundEstablishState extends EstablishBase
EstablishBase.State
_con, _context, _curDecrypted, _dh, _e_bobSig, _e_hXY_tsB, _hX_xor_bobIdentHash, _log, _peerSkew, _prevEncrypted, _received, _state, _stateLock, _transport, _tsA, _tsB, _X, _Y, AES_SIZE, FAILED, HXY_SIZE, HXY_TSB_PAD_SIZE, MAX_RI_SIZE, MIN_RI_SIZE, STATES_DONE, VERIFIED, XY_SIZE
Constructor and Description |
---|
OutboundEstablishState(RouterContext ctx,
NTCPTransport transport,
NTCPConnection con) |
Modifier and Type | Method and Description |
---|---|
int |
getVersion()
Get the NTCP version
|
void |
prepareOutbound()
We are Alice.
|
void |
receive(ByteBuffer src)
Parse the contents of the buffer as part of the handshake.
|
protected void |
releaseBufs(boolean isVerified)
Only call once.
|
_x, changeState, close, fail, fail, fail, isComplete, isCorrupt, prefix, toString, xor32
public OutboundEstablishState(RouterContext ctx, NTCPTransport transport, NTCPConnection con)
public void receive(ByteBuffer src)
receive
in interface EstablishState
receive
in class EstablishBase
public int getVersion()
getVersion
in interface EstablishState
getVersion
in class EstablishBase
public void prepareOutbound()
prepareOutbound
in interface EstablishState
prepareOutbound
in class EstablishBase
IllegalStateException
protected void releaseBufs(boolean isVerified)
releaseBufs
in class EstablishBase