OBEXSessionConnectResponse

Function OBEXSessionConnectResponse 

Source
pub unsafe extern "C-unwind" fn OBEXSessionConnectResponse(
    in_session_ref: OBEXSessionRef,
    in_response_op_code: OBEXOpCode,
    in_flags: OBEXFlags,
    in_max_packet_length: OBEXMaxPacketLength,
    in_optional_headers: *mut c_void,
    in_optional_headers_length: usize,
    in_callback: OBEXSessionEventCallback,
    in_user_ref_con: *mut c_void,
) -> OBEXError
๐Ÿ‘ŽDeprecated
Available on crate feature OBEX only.
Expand description

Send a response to a connect command to the remote client.

Parameter inSessionRef: A valid session reference.

Parameter inResponseOpCode: What response code you want to send to the remote client.

Parameter inFlags: Flags, as defined in the OBEX spec for this command.

Parameter inMaxPacketLength: Max packet length you want to support. Must be smaller or equal to the max packet length specified by the remote client.

Parameter inOptionalHeaders: Ptr to optional headers you can supply to the command. DO NOT dispose of this pointer until you callback is called with a success.

Parameter inOptionalHeadersLength: Size of data at the specified ptr.

Parameter inCallback: A valid callback. Will be called for progress, errors and completion.

Parameter inUserRefCon: Optional parameter; can contain anything you wish. Will be returned in your callback just as you passed it.

Returns: An error code value. 0 if successful.

As all commands for OBEX sessions, this command is asynchronous only. A NULL callback paramter will result in an error.

** DEPRECATED IN BLUETOOTH 2.2 (Mac OS X 10.6) ** You should transition your code to Objective-C equivalents. ** This API may be removed any time in the future.

ยงSafety

  • in_session_ref must be a valid pointer.
  • in_optional_headers must be a valid pointer.
  • in_callback must be implemented correctly.
  • in_user_ref_con must be a valid pointer.