Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: RFCOMM chan...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 980 of 1040
Post > Topic >>

Re: RFCOMM channel to Lego NXT

by Michael Ash <mike@[EMAIL PROTECTED] > Dec 18, 2007 at 10:03 AM

outpaddling <jbacon@[EMAIL PROTECTED]
> wrote:
> I tried just calling CFRunLoopRun() with the default env, but the
> handler doesn't fire.  Some other docs I found suggested that I need
> to add a source using CFRunLoopAddSource(), but I haven't been able to
> figure out how as yet.

The way this stuff *usually* works is, you create the object, set up a 
callback, then there's some function to create a CFRunLoopSourceRef from  
the thing you're working with. For example, a CFMessage****t has a function

called CFMessage****tCreateRunLoopSource which returns a CFRunLoopSourceRef

and you can then add that to the CFRunLoop.

I don't know if that's really how it works with Bluetooth, and I don't 
know what the function would be if so, but I guess that's the sort of 
thing to look for.

-- 
Michael Ash
Rogue Amoeba Software
 




 5 Posts in Topic:
RFCOMM channel to Lego NXT
outpaddling <jbacon@[E  2007-12-09 09:41:23 
Re: RFCOMM channel to Lego NXT
Michael Ash <mike@[EMA  2007-12-09 14:14:20 
Re: RFCOMM channel to Lego NXT
outpaddling <jbacon@[E  2007-12-17 20:09:43 
Re: RFCOMM channel to Lego NXT
Michael Ash <mike@[EMA  2007-12-18 10:03:11 
Re: RFCOMM channel to Lego NXT
outpaddling <jbacon@[E  2007-12-19 16:50:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 3:12:29 CST 2008.