.net Implementation of the client half of the MQTT messaging protocol. MQTT is a lightweight, open specification publish and subscribe protocol cheifly developed by IBM. Details of MQTT can be found at http://mqtt.org.
Using NetworkStream.WriteByte() results in multiple TCP packets being
sent per MQTT packet, which is very inefficient. This commit uses a
MemoryStream to amalgamate the whole MQTT packet, then writes it to the
NetworkStream.
Using NetworkStream.WriteByte() results in multiple TCP packets being sent per MQTT packet, which is very inefficient. This commit uses a MemoryStream to amalgamate the whole MQTT packet, then writes it to the NetworkStream.