void myqtt_conn_free ( MyQttConn connection)

Frees myqtt connection resources.

Free all resources allocated by the myqtt connection. You have to keep in mind if connection is already connected, myqtt_conn_free will close the connection.

Generally is not a good a idea to call this function. This is because every connection created using the myqtt API is registered at some internal process (the myqtt reader, sequencer and writer) so they have references to created connection to do its job.

To close a connection properly call myqtt_conn_close.

connectionthe connection to free

References myqtt_async_queue_unref(), myqtt_conn_opts_free(), myqtt_ctx_unref2(), myqtt_hash_destroy(), myqtt_mutex_destroy(), and MyQttRoleMasterListener.

Referenced by myqtt_conn_unref().