int myqtt_conn_ref_count ( MyQttConn connection)

Allows to get current reference count for the provided connection.

See also the following functions:

Parameters
connectionThe connection that is requested to return its count.
Returns
The function returns the reference count or -1 if it fails.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().