Re: [iPhone] networking
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