• 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
CFNetwork, Run Loops, and Tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFNetwork, Run Loops, and Tools


  • Subject: CFNetwork, Run Loops, and Tools
  • From: "Duane Murphy" <email@hidden>
  • Date: Fri, 3 Feb 2006 14:31:33 -0800

Hello Fellow Network Programmers,

I'm writing a tool (ie command line program), that uses CFNetwork, in
particular CFHTTPMessage and CFReadStream (in order to do some HTTP
transactions).

I'm having trouble in that everything seems to get built OK (using
CFNetworkHTTPDownload as a model), but there is no network traffic.
Nothing comes out at all.

I am using CFReadStreamScheduleWithRunLoop(). My context retain()
function is being called, so there's something there. CFReadStreamOpen()
returns true, but I don't see any traffic (with tcpdump), and the call
back function is never called, and the context release function is never
called.

I'm wondering if there's something in the run loop that I need to setup?

I am calling CFRunLoopRunInMode() in a while loop. Interestingly it
always returns kCFRunLoopRunFinished, which means there's no sources on
the run loop.

I setup all the CFNetworking code before calling CFRunLoopRunInMode().

What am I missing?

 ...Duane

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CFNetwork, Run Loops, and Tools
      • From: Becky Willrich <email@hidden>
  • Prev by Date: Re: How can I read from ARP-Table the MAC-Address of my Router.
  • Next by Date: Re: CFNetwork, Run Loops, and Tools
  • Previous by thread: Re: How can I read from ARP-Table the MAC-Address of my Router.
  • Next by thread: Re: CFNetwork, Run Loops, and Tools
  • Index(es):
    • Date
    • Thread