• 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
Re: [iPhone] networking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] networking


  • Subject: Re: [iPhone] networking
  • From: Keith Duncan <email@hidden>
  • Date: Thu, 06 Aug 2009 09:33:31 +0100


On 6 Aug 2009, at 09:27, James Lin wrote:

[...]

keeps querrying the php/mysql server for message left for it with a querry to php/mysql server inside a NSTimer (say querry once every 30 seconds).

[...]

Is this my best option given what I want to accomplish?


I'm afraid it isn't, polling a server is a pretty bad idea, on the iPhone in particular; it will drain the battery quickly. It sounds like you need some kind of messaging server, to which the clients maintain a persistent connection.

Keith
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [iPhone] networking
      • From: James Lin <email@hidden>
References: 
 >[iPhone] networking-is it crippled on the simulator? (From: James Lin <email@hidden>)
 >Re: [iPhone] networking-is it crippled on the simulator? (From: Dave Camp <email@hidden>)
 >Re: [iPhone] networking (From: James Lin <email@hidden>)
 >Re: [iPhone] networking (From: glenn andreas <email@hidden>)
 >Re: [iPhone] networking (From: James Lin <email@hidden>)
 >Re: [iPhone] networking (From: Luke the Hiesterman <email@hidden>)
 >Re: [iPhone] networking (From: James Lin <email@hidden>)
 >Re: [iPhone] networking (From: Roland King <email@hidden>)
 >Re: [iPhone] networking (From: James Lin <email@hidden>)

  • Prev by Date: Re: defining NSColor constants
  • Next by Date: Re: [iPhone] networking
  • Previous by thread: Re: [iPhone] networking
  • Next by thread: Re: [iPhone] networking
  • Index(es):
    • Date
    • Thread