int myqtt_storage_queued_messages ( MyQttCtx ctx,
MyQttConn conn 
)

Allows to get current queued messages pending to be redelivered on next connection.

Parameters
ctxThe context where the operation takes place.
connConnection reference to select the right local session according to its client identifier.
Returns
Number of queued messages associated to the client id running the provided connection or -1 if it fails

References myqtt_storage_queued_messages_offline().

Referenced by myqtt_conn_send_connect_reply().