问题
is there any framework/api to easily to find other devices and share data between them?
Not gamekit please. And bonjour would be great but it is to complex to build..Mayby there's any API that uses Bonjour?
EDIT: Is there any API/Framework that is based on Bonjour?
回答1:
I know that you've dismissed Bonjour outright, but you might be able to leverage a wrapper class to make it more manageable. For example, Bill Dudney created such a wrapper within his sample Bonjour iPhone application (described here). I generated a Mac version of this sample application to show how you can communicate between the iPhone and a desktop PC. You can see this in action in the Networking session of my class on iTunes U, as well as some other examples of peer-to-peer communication.
For device-device discovery and communication, Bonjour or something based on it (like GameKit) is going to be your best choice. Bonjour is the only way to do discovery of local iPhones over Bluetooth, for example (again, GameKit leverages this). It also works transparently with WiFi or Bluetooth, so you can create communication code that is network-agnostic.
GameKit provides a nice abstraction layer above Bonjour, so I wouldn't immediately reject it. You can decide to not use the system-supplied GKPeerPickerController if you were concerned about the user interface of this.
回答2:
Dropbox has an API:
https://www.dropbox.com/developers
回答3:
Bonjour would probably be the best to go with. It's supported by Apple, so you can count on it working for years to come and will only get better with time.
来源:https://stackoverflow.com/questions/5584348/any-api-to-share-data-between-two-iphones-ipod-touches-ipads-except-gamekit