64 bit bluetooth application
64 bit bluetooth application
- Subject: 64 bit bluetooth application
- From: Moritz Gmelin <email@hidden>
- Date: Thu, 25 Sep 2008 17:56:39 +0200
Hi,
I'm still struggeling on bringing a bluetooth application to 64 bit
mode.
I found this posting in one mailing list
Also this is extract from Apple docs:
I/O
64-bit applications can use posix read, write, and ioctl APIs to
access storage
devices and can use sockets for network I/O. However, they won't be
able to use
IOKitLib and IOUserClient plug-ins to access devices.
-----
The Bluetooth API on OS X is build on top of IOKit.framework ....
Does this mean that bluetooth apps can never be 64 bit applications in
10.5?
I did a little test with the BluetoothInquiryExample from the XCode
distribution and added the following snippet to the startInquiry method
IOReturn ret = 0;
BluetoothDeviceAddress localBTAddress;
IOBluetoothHostController* controller = [IOBluetoothHostController
defaultController];
if (controller != NULL) {
ret = [controller getAddress:&localBTAddress];
}
printf ("Address read returns %X\n", ret);
If I set the architecture of the application to "standard 32 bit
universal" it works and returns 0.
If I set the architecture of the application to "32/64 bit universal"
it returns E00002BD as error code.
The inquiry however works OK in both modes.
What does this mean?
Thanks
Moritz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden