1

I am working with GKSession right now. I want to connect more than 2 iPads with each other.

I am able to connect two of them using Bluetooth GKSession PeerPickerController. I am pretty much new to this stuff.

Can any one give me some pointers or links to tutorial that implement such model ?

Jon Egerton
  • 40,401
  • 11
  • 97
  • 129
slonkar
  • 4,055
  • 8
  • 39
  • 63

1 Answers1

7

Here is a sample GKSession project that illustrates setup and teardown of a GKSession without using a GKPeerPickerController.

Marco
  • 6,692
  • 2
  • 27
  • 38
  • Thasts a gr8 pointer Marco. Thanks. But I do have couple of doubts in it. I don't see connectionTypeMask mentioned any where in the code and I did trail and run, I guess its connecting over WiFi and not Bluetooth. is that correct? Besides that it also does not specifies mode like peer/master/client. I have only one iOS device with me and I connected it with XCode Simulator. I am not sure whether it allows more than 2 devices connected to each other ? – slonkar Jan 16 '12 at 04:04
  • GKSessionModePeer is specified in the setupSession method. The demo does not use a GKPeerPickerController hence no connectionTypeMask. – Marco Jan 16 '12 at 04:51
  • 1
    No device limit specified in the code. I've successfully tested it on a wifi network using Simulator and at least two other devices. Will you be accepting my answer? – Marco Jan 16 '12 at 08:06
  • Thats gr8 I have only one device so could not able to test more than two. Thanks a lot for helping me out. – slonkar Jan 16 '12 at 12:41