I don't recognize that status code; I can't find it anywhere either... Are you sure that is the right code? Also, are you creating a dictionary first before putting the header in it, like this: dictionary = CFDictionaryCreateMutable( kCFAllocatorDefault, 1, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks ); Your code doesn't include it, so I just wanted to make sure. Jason bubba@apple.com
I am having trouble with OBEXSessionConnect when I try to get a
directory listing.
here is my code:
CFMutableDictionaryRef dictionary;
unsigned char uuid[16];
CFMutableDataRef aGetHeadersDataRef;
// Traget Header mmust be set to the Folder Browsing UUID:
F9EC7BC4-953C-11D2-984E-525400DC9E09
uuid[0] = 0xF9;
uuid[1] = 0xEC;
uuid[2] = 0x7B;
uuid[3] = 0xC4;
uuid[4] = 0x95;
uuid[5] = 0x3C;
uuid[6] = 0x11;
uuid[7] = 0xD2;
uuid[8] = 0x98;
uuid[9] = 0x4E;
uuid[10] = 0x52;
uuid[11] = 0x54;
uuid[12] = 0x00;
uuid[13] = 0xDC;
uuid[14] = 0x9E;
uuid[15] = 0x09;
OBEXAddTargetHeader( uuid, 16, dictionary );
aGetHeadersDataRef = OBEXHeadersToBytes( dictionary );
status = OBEXSessionConnect( mOBEXSessionRef,
kOBEXConnectFlagNone, // connect flags
350, // max packet size
(void*) CFDataGetBytePtr(
aGetHeadersDataRef ), // headers
CFDataGetLength( aGetHeadersDataRef
), // header size
ConnectedCallback, // callback
self ); // refcon
I get status == 23963856
Any ideas? thanks.
Victor
_______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.