GKPeerStateAvailable for non existing peers?

Posted by Ernest on Stack Overflow See other posts from Stack Overflow or by Ernest
Published on 2010-01-07T01:16:39Z Indexed on 2010/03/24 12:03 UTC
Read the original article Hit count: 339

Filed under:
|

Hi,

used this website for the long time to find answers, now need to ask on myself! :)

I have implemented multi player for my game using GKSession and client/server approach, not using peer picker (up to 4 player allowed).

I have one big problem which I can't find solution for.

If you disconnect/reconnect server peer quickly enough, client peer will "remember" that host and will show it in the list of all available peers permanently, only turning wifi/bluetooth off resets this.

So if I do this 5 times in a row, my client will show 5 available hosts with the same name!

Anyone had experience with this? Any idea of workarounds?

I should note that requirements for my game is iPhone SDK 3.0 for Bluetooth and 3.1 for Wifi as GKSession supports both now.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about peer-to-peer