开发者

iphone client side mac server TCP /IP

I'm doing a typical client - server application, where the server is going to be a MAC (the server also uses AsynSocket) and the clients are some iPhones/iPod Touch/iPads and I want to know ho开发者_JAVA技巧w can i send messages between de iPhones for example. I can send information to the server, and it answers me correctly, but I don't know how to sen a message between user1 - server - user2 and then that the user2 answers the message :S Can you help me? is it possible to to that using AsyncSocket? Thanks.


If you want to have direct communication between the clients, this isn't a client - server application anymore.

For Peer-to-Peer communication I suggest to use GameKit. Create your GKSession with mode GKSessionModePeer and the same session ID on both clients so that they can communicate.

Read about Peer-to-Peer Connectivity in the Game Kit Programming Guide.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜