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, you will learn all that there is to know about exchanging data between sets of peers using Game Kit and Game Center networking. In previous chapters we have already added to our UFO game the ability to find peers using both Game Center and the Peer Picker (Game Kit). We will now add the ability to actually play a complete 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 for exchanging data. First, we need to send the actual data; second, we need to ...

Get Beginning iOS Social Games 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.