Skip to main content

Module outbox

Module outbox 

Source
Expand description

Outbox drain: push-error classification, single-message send, and outbox flush.

Functions§

classify_push_error
Classifies a MAP push error into the appropriate outbox and message delivery states.
drain_outbox
Fetches all queued outbox entries and pushes each to the device, updating the store with the outcome.
is_fatal_anyhow
Returns true when any error in the chain is a fatal MAP transport error.
is_session_fatal
Returns true when e indicates the RFCOMM/OBEX transport has died and no further MAP operations will succeed on this session.
push_sms
Pushes an outgoing SMS to the device without recording it in the store.
send_sms
Records the outbound message in the store, pushes it to the device, and updates the outcome — all as a single atomic sequence.