iPhone Gamekit peer with a desktop peer
Asked Answered
E

3

9

I am looking for a way to establish a wireless connection between an iPhone and a desktop client. Gamekit looks promising but all the examples / documentation only explain iPhone to iPhone.

  • Are there examples / documentation for an Gamekit peer on the desktop (cocoa or java)?
  • What are the alternatives without doing to much low level socket programming?
Esquiline answered 29/6, 2009 at 21:13 Comment(1)
I offer a bounty of +50 pts for the desktop examples / documentation. Thanks!Francie
M
3

The iPhone emulator does not run these bluetooth p2p connections. Hence, it can only be tested with real hardware.

It is a little confusing because the GKSession reference talks only about being a way to connect peers over bluetooth, while the GKPeerPickerController states "can be configured to select between Bluetooth and Internet connections." However there's a clear note there that they're not really going to help you with internet based connections.

Myotome answered 29/6, 2009 at 21:16 Comment(1)
Well I don’t want to connect two iPhones. I am looking for a way to connect my iPhone with an desktop application (written in cocao or java). And I wonder if I could use GameKit.Esquiline
A
2

This is unfortunately a non-answer, but...

GameKit is an abstraction of the bluetooth and wifi networking layers, allowing a specific set of protocols for communication between two devices -- to communicate with a desktop client, you would need to replicate all of the GameKit functionality on the desktop, since there is no comparable API on the desktop. This would not be a simple undertaking.

I would highly suggest developing something over bonjour, as @Jordan suggested. Bill Dudney's project (blog article). It's a great place to start.

Ance answered 31/8, 2010 at 20:49 Comment(0)
L
1

Citing Game Kit Framework Reference's Features paragraph:

Peer-to-peer connectivity allows your game to create an ad hoc Bluetooth or wireless network between multiple iPhones in the same local area. Although designed with games in mind, this network is useful for any type of data exchange among users of your app. For example, an app could use peer-to-peer connectivity to share electronic business cards or other data. This functionality is only available on iOS. You can also get the same functionality using Game Center.

Loosejointed answered 26/5, 2013 at 22:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.