• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CFSocket and kCFRunLoopDefaultMode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFSocket and kCFRunLoopDefaultMode


  • Subject: CFSocket and kCFRunLoopDefaultMode
  • From: "Duane Murphy" <email@hidden>
  • Date: Wed, 20 Aug 2003 21:25:42 -0700

I am using CFSocket with a raw ethernet port. When I add the CFSocket run
loop source to the current run loop (the main run loop) I used
kCFRunLoopDefaultMode

CFRunLoopAddSource(
CFRunLoopGetCurrent(), run_loop_source_, kCFRunLoopDefaultMode );

Then I called

CFRunLoopRunInMode( kCFRunLoopDefaultMode, 3, true );

But the call back was never called. If I change the run loop mode to some
string of mine for both calls then the call back works as expected.

My goal is to eventually add the CFSocket RunLoopSource to the main
RunLoop and call WaitNextEvent. Hence using kCFRunLoopDefaultMode.

There seems be some problem somewhere. I dont know enough about run loops
to know where I could be going wrong.

What is the problem here and is there a work around? Is WNE going to work
correctly instead of calling CFRunLoopRunInMode?

...Duane

Hmm, this is in a CodeWarrior console application (all output ends up in
the log window). I now suspect that WaitNextEvent is never called and
that there is no kCFRunLoopDefaultMode. But that wouldn't make sense
because then it would just be like any other mode. Just some random thoughts.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: CFSocket and kCFRunLoopDefaultMode
      • From: "Duane Murphy" <email@hidden>
  • Prev by Date: Re: TCP speed versus busy processes
  • Next by Date: Re: CFSocket and kCFRunLoopDefaultMode
  • Previous by thread: Re: Internet Config from a daemon
  • Next by thread: Re: CFSocket and kCFRunLoopDefaultMode
  • Index(es):
    • Date
    • Thread