gamekit

Using iOS GameKit's “Bluetooth Bonjour” with other platforms

依然范特西╮ 提交于 2019-11-27 05:06:05
问题 I'm interested in connecting to iOS-based devices over Bluetooth. I can see that the "Local Network" service is exposed, but I cannot find any extra information about it. Property stored under key 0x0204 looks like a Bonjour key. Which protocol is used? How can one talk to the iOS device using Linux, Mac or one's own embedded device equipped with a Bluetooth chip? Here's SDP data extracted using Bluetooth Explorer under OS X while the iOS device runs Gameloft's Star Battalion. { 0x0000 =

Is it possible, in principle, for an Android device to interface with an iPhone over Bluetooth/GameKit?

霸气de小男生 提交于 2019-11-27 00:31:39
(I am not interested in pure theory, but as a practical near or mid-term possibility, say within 12-24 months.) As a developer familiar with (but not specializing in) two major smartphone platforms, should I expect an Android library to come out which can spoof itself onto an iPhone app's GameKit-based network. It seems reasonable that a Bluetooth interface between platforms might square the opportunity to make useful applications, in the same way that modems benefited PC/Mac platforms via Metcalfe's Law. I am looking for one of two answers: Is this obviously not likely (e.g. because of

Client/Server GKSessions

不羁的心 提交于 2019-11-26 20:28:15
I have an application that is set up so that if the user selects the device to be a server it creates a GKSession in server mode, and if it selects cient it create a GKSession in client mode. Whats happening at the moment is the server is sending out the data fine, which is just a string containing the time of the server. The problem starts however, when I have one client already connected to the server and I then connect another client .. the problem is: the second connected client connects also to the first client for some reason. I want to be able to not connect to other clients and just

Send and receive NSData via GameKit

依然范特西╮ 提交于 2019-11-26 16:19:32
问题 I'm trying to send some NSData over Bluetooth through GameKit . While I've got GameKit set up and are able to send small messages across, I now would like to expand and send across whole files. I've been reading that you have to split large files up into packets before sending them across individually. So I decided to create a struct to make it easier to decode the packets when they're received at the other end: typedef struct { const char *fileName; NSData *contents; int fileType; int

Transfer data between iOS and Android via Bluetooth?

允我心安 提交于 2019-11-26 12:04:09
I've been reading up on how to transfer data between iOS devices over Bluetooth using GameKit. I'm not writing a game, per se, but do have a need to transfer a small amount of binary data between two devices. Between two iOS devices, this is easy enough. However, I was wondering if it is possible to transfer data between an iOS device and an Android device via the same mechanism. Has anyone come across documentation/tutorial that would explain how to do this? Is it even technically possible? Or has Apple put in some sort of restriction that would prevent this? The other option I discovered was

Is it possible, in principle, for an Android device to interface with an iPhone over Bluetooth/GameKit?

徘徊边缘 提交于 2019-11-26 09:23:44
问题 (I am not interested in pure theory, but as a practical near or mid-term possibility, say within 12-24 months.) As a developer familiar with (but not specializing in) two major smartphone platforms, should I expect an Android library to come out which can spoof itself onto an iPhone app\'s GameKit-based network. It seems reasonable that a Bluetooth interface between platforms might square the opportunity to make useful applications, in the same way that modems benefited PC/Mac platforms via

Client/Server GKSessions

不羁的心 提交于 2019-11-26 09:01:34
问题 I have an application that is set up so that if the user selects the device to be a server it creates a GKSession in server mode, and if it selects cient it create a GKSession in client mode. Whats happening at the moment is the server is sending out the data fine, which is just a string containing the time of the server. The problem starts however, when I have one client already connected to the server and I then connect another client .. the problem is: the second connected client connects