CFNetwork, Run Loops, and Tools
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