KAATcpDisconnect Class Reference
Inherits from | KAAMqttFrame : NSObject |
---|---|
Declared in | KAATcpDisconnect.h KAATcpDisconnect.m |
Overview
Disconnect message class.
The DISCONNECT message is sent from the client to the server to indicate that it is about to close
its TCP/IP connection. This provides a clean disconnection, rather than just dropping the line.
If the client had connected with the clean session flag set,
then all previously maintained information about the client will be discarded.
A server should not rely on the client to close the TCP/IP connection after receiving a DISCONNECT.
– pack
Pack message into mqtt frame
- (void)pack
Discussion
Pack message into mqtt frame
Declared In
KAAMqttFrame.h
– decode
Decode message from mqttFrame buffer
- (void)decode
Discussion
Decode message from mqttFrame buffer
Exceptions
KaaTcpProtocolException |
TCP exception |
---|
Declared In
KAAMqttFrame.h
– needToCloseConnection
Check if this Mqtt frame should be last frame on connection and connection should be closed.
- (BOOL)needToCloseConnection
Return Value
YES if connection should be closed after frame transmition.
Discussion
Check if this Mqtt frame should be last frame on connection and connection should be closed.
Declared In
KAAMqttFrame.h