int myqtt_storage_queued_messages_offline ( MyQttCtx ctx,
const char *  client_identifier 

Allows to get current queued messages pending to be redelivered on next connection (offline version).

ctxThe context where the operation takes place.
client_identifierThe client identifier to select the right local session according to its client identifier.
Amount of messages stored on the provided client_identifier.

References FILE_EXISTS, FILE_IS_REGULAR, myqtt_support_build_filename(), and myqtt_support_file_test().

Referenced by myqtt_storage_queued_messages().