Developed part of the TCP plumbering for the MQTT client