Chapter 8

Exchanging Data

In the past few chapters, we explored how to connect to peers through a variety of methods. So far, we have not been able to do much with that connection. In this chapter, we will learn all that there is to know about exchanging data between sets of peers using Game Kit and Game Center networking. We have already added the ability to find peers using both Game Center and the Peer Picker (Game Kit) to our UFO game. We will now add the ability to actually play a multiplayer match.

Because all the groundwork has already been laid out in previous chapters, there are only two items that we need to worry about in regards to exchanging data. First, we need to send the actual data; second, we need to receive and process that ...

Get Beginning iOS Game Center and Game Kit: For iPhone, iPad, and iPod touch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.