gksession

GKSession - what if I have Bluetooth and Wi-Fi turned off?

I'm working on an iPhone app that will allow for peer-to-peer connections. From what I understand, I have the choice between using GKPeerPicker or the GKSession. I don't like the idea of using the PeerPicker because I want to show a custom interface, so I decided to go with GKSession, and hey, BONUS is that it also works over Wi-Fi, wher...

GKTank example is not working.

Hello, I'm trying to get the GKTank example working with 2 iPhones. Both have bluetooth enabled. I start the app on both devices and tap the screen. The Peer Picker comes up and the devices find each other. If I select one device in the list it says "Waiting for {other iPhone}..." forever. On the {other iPhone} the waiting phone gets gra...

GKSession won't send data to peers on second connection

I've got a peer to peer iPhone game working pretty well. I've created a table to display available peers and I can connect (so far) up to four devices and play a full round of a game from start to finish: But here's my problem... I create a GKSession on one device with GKSessionModeClient and the other with GKSessionModeServer. The c...

GKSession alloc / release / alloc = leaks and crashes

I've got an app that throws out the GKSession and makes a new one under various conditions (connection timeout, session fails, etc.). I'm getting memory leaks, though, and it sometimes crashes after a few loops through the reconnect. Here's my code: - (void) netConnect:(id) sender { NSLog(@"allocating GKSession"); currentSes...

Problem when releasing GkSession on GameKit iPhone

Hi, I'm Fabio and i'm here to find help with an issue about GameKit. I'm writing a program that allow users to play online games. The program use "manual" GkSession (without GkPeerPicker 'cause I need 4 connection). NSString *name=[[NSString alloc] initWithUTF8String:pData->m_sPlayerName]; if(pNetMgr->GetServerMode()) self.current...