GameKit server disconnect makes session invalid

Posted by Markus on Stack Overflow See other posts from Stack Overflow or by Markus
Published on 2010-05-31T21:51:59Z Indexed on 2010/05/31 21:53 UTC
Read the original article Hit count: 218

Filed under:
|
|

Hi everyone,

I'm trying to build a 4 player multiplayer game using GameKit. I tried many things and I'm currently using client/server mode, meaning that I have 1 session in GKSessionModeServer and 3 other sessions connecting to this one in GKSessionModeClient. My goal is, that when a user leaves the game or gets disconnected for whatever reason, that the others can continue their game. So far this works if any of the Clients leave the game, but if the Sevrer leaves the game, send and receive calls are not reaching the other peers anymore. I tried the same with 4 peers in GKSessionModePeer with the same result (where the player who accepts connections cannot quit). Does anyone had better success in making this work? Any help is highly appreciated.

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c