MqttConnectAckVariableHeader class
Implementation of the variable header for an MQTT ConnectAck message.
- Inheritance
-
- Object
- MqttVariableHeader
- MqttConnectAckVariableHeader
Constructors
- MqttConnectAckVariableHeader()
- Initializes a new instance of the MqttConnectVariableHeader class.
- MqttConnectAckVariableHeader.fromByteBuffer(MqttByteBuffer headerStream)
- Initializes a new instance of the MqttConnectVariableHeader class.
Properties
- connectFlags ↔ MqttConnectFlags
-
Conenct flags
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- keepAlive ↔ int
-
Defines the maximum allowable lag, in seconds, between expected messages.
The spec indicates that clients won't be disconnected until KeepAlive + 1/2 KeepAlive time period
elapses.
getter/setter pairinherited
- length ↔ int
-
The length, in bytes, consumed by the variable header.
getter/setter pairinherited
- messageIdentifier ↔ int?
-
Message identifier
getter/setter pairinherited
- protocolName ↔ String
-
Protocol name
getter/setter pairinherited
- protocolVersion ↔ int
-
Protocol version
getter/setter pairinherited
- returnCode ↔ MqttConnectReturnCode
-
Return code
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topicName ↔ String
-
Topic name
getter/setter pairinherited
Methods
-
getWriteLength(
) → int -
Gets the length of the write data when WriteTo will be called.
This method is overriden by the ConnectAckVariableHeader because the
variable header of this message type, for some reason, contains an extra
byte that is not present in the variable header spec, meaning we have to
do some custom serialization and deserialization.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readConnectFlags(
MqttByteBuffer stream) → void -
Connect flags
inherited
-
readFrom(
MqttByteBuffer variableHeaderStream) → void -
Creates a variable header from the specified header stream.
override
-
readKeepAlive(
MqttByteBuffer stream) → void -
Keep alive
inherited
-
readMessageIdentifier(
MqttByteBuffer stream) → void -
Message identifier
inherited
-
readProtocolName(
MqttByteBuffer stream) → void -
Read functions
Protocol name
inherited
-
readProtocolVersion(
MqttByteBuffer stream) → void -
Protocol version
inherited
-
readReturnCode(
MqttByteBuffer stream) → void -
Return code
inherited
-
readTopicName(
MqttByteBuffer stream) → void -
Topic name
inherited
-
toString(
) → String -
A string representation of this object.
override
-
writeConnectFlags(
MqttByteBuffer stream) → void -
Connect flags
inherited
-
writeKeepAlive(
MqttByteBuffer stream) → void -
Keep alive
inherited
-
writeMessageIdentifier(
MqttByteBuffer stream) → void -
Message identifier
inherited
-
writeProtocolName(
MqttByteBuffer stream) → void -
Write functions
Protocol name
inherited
-
writeProtocolVersion(
MqttByteBuffer stream) → void -
Protocol version
inherited
-
writeReturnCode(
MqttByteBuffer stream) → void -
Return code
inherited
-
writeTo(
MqttByteBuffer variableHeaderStream) → void -
Writes the variable header for an MQTT Connect message to
the supplied stream.
override
-
writeTopicName(
MqttByteBuffer stream) → void -
Topic name
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited