Contents

OBEXAddConnectionIDHeader(_:_:_:)

Add bytes representing a connection ID to a dictionary of OBEX headers.

Declaration

func OBEXAddConnectionIDHeader(_ inHeaderData: UnsafeRawPointer!, _ inHeaderDataLength: UInt32, _ dictRef: CFMutableDictionary!) -> OBEXError

Parameters

  • inHeaderData:

    Connection ID data. Should be 4 bytes in length only.

  • inHeaderDataLength:

    Length of Connection ID data. This should ONLY be set to equal 4.

  • dictRef:

    Dictionary you have allocated to hold the headers. Make sure it’s mutable.

Return Value

Error code, kOBEXSuccess (0) if success.

Discussion

ConnectionID headers - OBEX Spec, 2.2.10: Byte Sequence

*** IMPORTANT NOTE: In bluetooth 1.0, using this function will allow you to pass in any value. You should not pass more than 4 bytes ever. In later releases, if the length passed is not 4, a kOBEXBadArgumentError error will be returned. ***

See Also

Miscellaneous