Contents

match(_:didReceive:forRecipient:fromRemotePlayer:)

Processes the data sent from one player to another.

Declaration

optional func match(_ match: GKMatch, didReceive data: Data, forRecipient recipient: GKPlayer, fromRemotePlayer player: GKPlayer)

Parameters

  • match:

    The match associated with the data.

  • data:

    The data sent by the player.

  • recipient:

    The player who receives the data.

  • player:

    The player who sends the data.

Discussion

Your game defines its own format for data packets it transmits and receives over the network.

See Also

Receiving Data from Other Players