Skip to main content

establish_map_session

Function establish_map_session 

Source
pub async fn establish_map_session<T: AsyncRead + AsyncWrite + Unpin>(
    stream: T,
) -> Result<MapClient<T>, SessionError>
Expand description

OBEX CONNECT + enable MAP notifications. Caller must hold the returned client โ€” iOS drops notification registration on OBEX DISCONNECT.

ยงErrors

Returns SessionError::Map on OBEX protocol error or server refusal.