readFrom method

void readFrom (
  1. MqttByteBuffer variableHeaderStream
)

Creates a variable header from the specified header stream. A subclass can override this method to do completely custom read operations if required.

Implementation

void readFrom(MqttByteBuffer variableHeaderStream) {
  readProtocolName(variableHeaderStream);
  readProtocolVersion(variableHeaderStream);
  readConnectFlags(variableHeaderStream);
  readKeepAlive(variableHeaderStream);
  readReturnCode(variableHeaderStream);
  readTopicName(variableHeaderStream);
  readMessageIdentifier(variableHeaderStream);
}