you are watching GKSession .. and this is an excellent and comprehensive guide to what you are looking for. IF you want to dive a little deeper into this project that I did.
the link in the above comment uses bonjour , that the layer is below GKSession (that is, GKSession is the shell for bonjour) .. so depending on how many devices you want to connect at the same time (GKSession starts to choke about 3-4) and how extensive are your bandwidth / ping requirements, you would choose one or the other.
source
share