OBEXAddConnectionIDHeader(_:_:_:)
Add bytes representing a connection ID to a dictionary of OBEX headers.
Declaration
func OBEXAddConnectionIDHeader(_ inHeaderData: UnsafeRawPointer!, _ inHeaderDataLength: UInt32, _ dictRef: CFMutableDictionary!) -> OBEXErrorParameters
- 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
OBEXAddApplicationParameterHeader(_:_:_:)OBEXAddAuthorizationChallengeHeader(_:_:_:)OBEXAddAuthorizationResponseHeader(_:_:_:)OBEXAddBodyHeader(_:_:_:_:)OBEXAddByteSequenceHeader(_:_:_:)OBEXAddCountHeader(_:_:)OBEXAddDescriptionHeader(_:_:)OBEXAddHTTPHeader(_:_:_:)OBEXAddLengthHeader(_:_:)OBEXAddNameHeader(_:_:)OBEXAddObjectClassHeader(_:_:_:)OBEXAddTargetHeader(_:_:_:)OBEXAddTime4ByteHeader(_:_:)OBEXAddTimeISOHeader(_:_:_:)OBEXAddTypeHeader(_:_:)