java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.transport.ntcp.NTCPConnection.NTCP2FailState
All Implemented Interfaces:
Runnable, NTCPConnection.ReadState
Enclosing class:
NTCPConnection

private class NTCPConnection.NTCP2FailStateextends SimpleTimer2.TimedEvent implements NTCPConnection.ReadState
After an AEAD failure, read a random number of bytes, with a brief timeout, and then fail.

Call all methods from synchronized parent method.

  • Field Details

    • _toRead

      private final int _toRead
      Bytes still to read in this handshake phase.
    • _validFramesRcvd

      private final int _validFramesRcvd
      Valid frames received before this phase.
    • _read

      private int _read
      Bytes read so far in this phase.
  • Constructor Details

    • NTCP2FailState

      public NTCP2FailState(int toRead, int validFramesRcvd)
      Read state for the NTCP2 failure message.
      Parameters:
      toRead - how much left to read
      validFramesRcvd - to be sent in termination message
  • Method Details