• 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
CFHttpMessage and keep-alive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CFHttpMessage and keep-alive
      • From: Jens Alfke <email@hidden>
  • Prev by Date: NKE ipfilter questions
  • Next by Date: Re: CFHttpMessage and keep-alive
  • Previous by thread: NKE ipfilter questions
  • Next by thread: Re: CFHttpMessage and keep-alive
  • Index(es):
    • Date
    • Thread