- 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 MethodsModifier and TypeMethodDescriptionvoiddestroy()Releases the buffers this state holds.intGives the valid frames read so far.voidreceive(ByteBuffer buf) Feeds freshly read data to this state.
Method Details
receive
destroy
void destroy()Releases the buffers this state holds.getFramesReceived
int getFramesReceived()Gives the valid frames read so far.- Returns:
- the frame count