English 中文(简体)
Why is Gamekit designed this way? Even in Client mode all notifications are received
原标题:

We are not using GKPeerPicker control. We are implementing custom UI. We have done some traditional client-server apps in different languages/platforms.

In Gamekit, I have one in server mode and rest of them are in client mode. I am not using Peer mode. Yet, when ever some new client connects all the already connected clients are implicitly notified of the connection and disconnection of any client. Also when I send data from client using sendToAll it reaches all the clients that are connected to the server.

I mean now I have to maintain the server peerid and rest of the peerids explicitly. Though its a small task in programming, I am just curious about its design. In a traditional client server socket programming, you don t have all this. For example scenarios, when a 2 clients wants to capture a slot, the server processes the first request, fills the slot and rejects the 2nd request.

I don t see much of advantage due to this design. Please point my mistakes and let me know why it is designed this way.

最佳回答

It is just the way peer to peer connections work. Its designed this way because in traditional systems, if the server fails the communication stops. But here each peer is equally weighted and they can join/quit anytime and still the communication between the rest will continue to happen.

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签