GameKit: what type of connection is used when using GKSession without GKPeerPickerController: allowed

I am implementing a program chat BlueToothand Wififor iPhone. For communication I use GameKit. But due to some special requirements applications, I cannot use the default value GKPeerPickerController. So instead I created a combination GKSessionand GKSessionDelegatefor the detection of peers. After they find each other, they can communicate.

Now I tested the chat function on three mac-minis, using simulatorone simulator and one iPod, one iPhoneand one simulator. I can communicate in all of the above scenarios. But some, like iPhone, and iPodwill not detect each other.

I also wonder what type of connection is going on between all of these devices. Since theoretically GameKitsupports both, BlueToothand Wifi. Now the problem is that it GKPeerPickerControllerallows you to choose between BlueToothand Wifi(unfortunately, the implementation is Wifinot documented anywhere.) This is normal, but what about a custom script when you implement him or her own GKSessionand GKSessionDelegateCombo. When an GKSessionObject is created using a single method init:

– initWithSessionID:displayName:sessionMode:

only a configuration parameter that provides this sessionModebut has only three options

   GKSessionModeServer,
   GKSessionModeClient,
   GKSessionModePeer,

None of them indicate a choice of connection between BlueToothand Wifi.

BlueTooth iPod mac-mini, , Wifi. :

DNSServiceRegister callback: Ref=4c3f3d0, Flags=2, ErrorType=0 name=00XGT0H0A..BTChat1 regtype=_0eilkgh5o2mq17._udp. domain=local.

DNSServiceRegister udp , TCP/IP.

, , GKSession GKSessionDelegate, WiFi Wifi BlueTooth ( , BlueTooth ).

GameKit BlueTooth ? - , ?

- , - WiFi GKPeerPickerController?

Update:

. GKSession GKSessionDelegate , , BlueTooth, Wifi. iPhone (JailBroked), , BlueTooth , , GameKit, , Airplane , BlueTooth BlueTooth, . Wifi, BlueTooth.

+5
1

, GKPeerPicker ? , NEAR, Wi-Fi/Bluetooth?

, INTERNET TCP/IP.

+1

All Articles