Data Modes

When data is sent using Game Kit, there are two possible valuables for the dataMode argument: GKSendDataReliable and GKSendDataUnreliable. It is important to understand the distinction between these methods:

Image GKSendDataReliable tells Game Kit that this data is required to be received by the peer; if it is not received, it will be resent until it is received. In addition to continually retrying to send the data, GKSendDataReliable ensures that data packets are received in the same order in which they are sent. This method is used in the sample app since we want text messages to never get lost in the network and we want them to appear ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK 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.