Class SendFrameHeader


  • public class SendFrameHeader
    extends Object
    Author:
    Stuart Douglas
    • Constructor Detail

      • SendFrameHeader

        public SendFrameHeader​(int reminingInBuffer,
                               PooledByteBuffer byteBuffer,
                               boolean anotherFrameRequired)
      • SendFrameHeader

        public SendFrameHeader​(int reminingInBuffer,
                               PooledByteBuffer byteBuffer,
                               boolean anotherFrameRequired,
                               ByteBuffer trailer)
      • SendFrameHeader

        public SendFrameHeader​(int reminingInBuffer,
                               PooledByteBuffer byteBuffer)
    • Method Detail

      • getByteBuffer

        public PooledByteBuffer getByteBuffer()
        Returns:
        The header byte buffer
      • getRemainingInBuffer

        public int getRemainingInBuffer()
        Returns:
      • isAnotherFrameRequired

        public boolean isAnotherFrameRequired()
        Returns true if another frame is required after this one. Note that returning false does not mean that this is the last frame. This is used for protocols that require a trailing packet after all data has been written.