Re: More details on OBEX FTP trouble - solved
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Thread-index: AcdksQzLS41E69CkEduXLgARJHK4jAKUOEVa Thread-topic: More details on OBEX FTP trouble - solved User-agent: Microsoft-Entourage/11.3.3.061214 I few days ago I had asked on this list about problems with the Apple-provided OBEX Sample app (which implemtent a OBEX FTP client). Just for the record, here is what I found: While it works apparenly just fine with a Nokia phone, it does not with a Mac as the OBEX FTP server. The reason for that is that the sample does not follow the OBEX FTP specs - apparently the Apple OBEX FTP server is verifying those rules while Nokia's is not. To fix it, these changes need to be made to the sample code: 1. When connecting, a Target Header must be supplied (UUID F9EC7BC4-953C-11D2-984E-525400DC9E09) to the "optionalHeaders" parameter. 2. In the "connected" handler, the Connection ID must be extracted from the passed headers. 3. In all other calls (PUT, GET, SETPATH), the connection ID must be supplied as the first item in the headers. 4. In the Setpath call, the flags argument must be set to 2, not 0. And if you like to also be able to retrieve a dir listing, e.g. when the name field is empty, a type header "x-obex/folder-listing" needs to be passed instead of the name header. If anyone's interested in the fixed version, send me a note. Thomas _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Thomas Tempelmann