Instance Method

sendDataToAllPeers:withDataMode:error:

Transmits a collection of bytes to all connected peers.

Declaration

- (BOOL)sendDataToAllPeers:(NSData *)data withDataMode:(GKSendDataMode)mode error:(NSError **)error;

Parameters

data

The bytes to be sent.

mode

The mechanism used to send the data.

error

If the data could not be queued, an NSError object describing the error.

Return Value

YES if the data was successfully queued for transmission; NO if the session object was unable to queue the data.

Discussion

The session queues the data and transmits it when the network is free.

See Also

Working with Connected Peers

- setDataReceiveHandler:withContext:

Sets the object that handles data received from other peers connected to the session.

Deprecated
- sendData:toPeers:withDataMode:error:

Transmits a collection of bytes to a list of connected peers.

Deprecated
disconnectTimeout

A time interval that expresses how long the session waits before it disconnects a nonresponsive peer.

Deprecated
- disconnectFromAllPeers

Disconnects the session from all connected peers.

Deprecated
- disconnectPeerFromAllPeers:

Disconnects a connected peer from all peers connected to the session.

Deprecated