What is a good tutorial for peer-to-peer networking on the iPhone? [closed]
开发者_如何学编程
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionI would like to make a game where two players are connected via WiFi or Bluetooth, but I've not found any good tutorials out there on this. What resources do you recommend for learning peer-to-peer networking on the iPhone?
I cover peer-to-peer networking, including Bonjour and Game Kit, as part of my course on iPhone development. The notes for the respective class session can be found here, and the class can be downloaded as a video from iTunes U.
The notes also include links to simple example applications that show off peer-to-peer networking, and I demonstrate how all this works during the class.
To help with the network side, you'll probably want to use Game Kit, which can easily connect on BT or wifi. Read Apple's doc on it!
https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html
You probably want to start with the Game Kit Programming Guide.
精彩评论