开发者

Best way for an Iphone app to talk to a Java server through a full-duplex connection (chat or game)

My client is in an Iphone app (game with chat) and it will be talking to a Java server. What is the best way (protocol / interface) for my 开发者_运维问答Iphone app to talk to my server? I know you can use HTTP, but it is a request / response protocol. I could always request something and wait for asynchronous notifications from server. Then request again, implementing something like a Comet server.

Anyways, what is the industry standard for this type of communication: Iphone app talking to Java server, supporting asynchronous "push" notifications from server.

Thanks!


There is no 'standard'. It's more of a do what fits your application. Look at your requirements, and think of ways to solve it. Then look for existing solutions if they exist.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜