Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Connection lifecycle: RFCOMM connect, OBEX session establishment, and teardown, given an already-resolved device address and channel (SDP lookup happens in imsg-transport::discover).

Functions§

connect_map
RFCOMM connect to addr:channel (gating on BT_CONNECTED up to bt_gate, requesting security if given) then establish_map_session.
connect_pbap
RFCOMM connect to addr:channel then PBAP OBEX CONNECT.
establish_map_session
OBEX CONNECT + enable MAP notifications. Caller must hold the returned client — iOS drops notification registration on OBEX DISCONNECT.