CFHttpMessage and keep-alive
CFHttpMessage and keep-alive
- Subject: CFHttpMessage and keep-alive
- From: Matthew Rushton <email@hidden>
- Date: Sat, 20 Dec 2008 08:43:30 -0800 (PST)
Hi,
I'm currently implementing some networking code on the iPhone using a custom protocol and tcp sockets which has worked well enough. I'm considering moving it to use http requests so it is more web compliant. I'm concerned about opening and closing too many tcp connections however so I'd like to use http keep-alive. My question is what's the best way to implement this functionality. I clearly could serialize the requests and open a socket much like I am now but what I'm looking for is a simpler approach that hid the details in the background. Is there anyway doing something more along these lines could work with keep-alive in a simple manor:
CFReadStreamRef myReadStream = CFReadStreamCreateForHTTPRequest(kCFAllocatorDefault, myRequest);
CFReadStreamOpen(myReadStream);
Thanks!
-Matt
_______________________________________________
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