开发者

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

开发者 https://www.devze.com 2023-01-16 17:06 出处:网络
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 ca

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

精彩评论

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