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, xor32public OutboundEstablishState(RouterContext ctx, NTCPTransport transport, NTCPConnection con)
public void receive(ByteBuffer src)
receive in interface EstablishStatereceive in class EstablishBasepublic int getVersion()
getVersion in interface EstablishStategetVersion in class EstablishBasepublic void prepareOutbound()
prepareOutbound in interface EstablishStateprepareOutbound in class EstablishBaseIllegalStateExceptionprotected void releaseBufs(boolean isVerified)
releaseBufs in class EstablishBase