Re: Single-Threaded-App
Re: Single-Threaded-App
- Subject: Re: Single-Threaded-App
- From: Eric Brown <email@hidden>
- Date: Tue, 28 Sep 2004 10:15:32 -0700
On Sep 27, 2004, at 1:04 PM, Moritz Gmelin wrote:
Hi List Memebers again,
I'm still trying to figure out the problem with the connections to by
remote devices. Therefore, I am trying to write a minimal Application
to connect to that device. But so far with no luck.....
Is it possible to write a signle threaded console-App, that connects
to a RFComm-Channel and receives Callback-Events ? The connection
seems to be successfull and also IOBluetoothRFCommWriteSync commands
return 0. But my Callback-Function never receives any events (the
device should be responing). In multi-threaded Apps this seems to be
working.
Any help ?
Make sure you are running either a CFRunLoop or NSRunLoop in your main
thread. The callbacks are called from a run loop event source and
won't get called if you aren't actively running a run loop.
- Eric
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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