All Known Implementing Classes:
NTCPConnection.NTCP2FailState, NTCPConnection.NTCP2ReadState
Enclosing class:
NTCPConnection

private static interface NTCPConnection.ReadState
The current phase of reading from the socket.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    void
    Releases the buffers this state holds.
    int
    Gives the valid frames read so far.
    void
    Feeds freshly read data to this state.
  • Method Details

    • receive

      void receive(ByteBuffer buf)
      Feeds freshly read data to this state.
      Parameters:
      buf - the data read
    • destroy

      void destroy()
      Releases the buffers this state holds.
    • getFramesReceived

      int getFramesReceived()
      Gives the valid frames read so far.
      Returns:
      the frame count