Class HandshakeMessage

    • Constructor Detail

      • HandshakeMessage

        public HandshakeMessage()
    • Method Detail

      • getBytes

        public abstract byte[] getBytes()
      • findPositionLastExtension

        public static int findPositionLastExtension​(java.nio.ByteBuffer buffer)
        Returns the (relative) position of the last extension.
        Parameters:
        buffer - data to parse, buffer position should be at the point where extensions start. on return, the buffer position will be right after the last extension.
        Returns:
        the start position of the last extension, relative to the start of all extensions.