LocalNetworkGamer.SendData Method (Byte[], SendDataOptions)

Sends a byte array to all gamers in a session. This includes the gamer sending the packet.

Namespace: Microsoft.Xna.Framework.Net
Assembly: Microsoft.Xna.Framework.Net (in microsoft.xna.framework.net.dll)

Syntax

public void SendData (
         byte[] data,
         SendDataOptions options
)

Parameters

  • data
    Type: Byte
    Byte array containing session data.
  • options
    Type: SendDataOptions
    Enumeration containing data send options.

Exceptions

Exception type Condition
ArgumentNullException data is null.
ObjectDisposedException The NetworkGamer sending this message is no longer valid. The gamer may have left the session.

See Also

Tasks

Sending Network Data

Reference

LocalNetworkGamer Class
LocalNetworkGamer Members
Microsoft.Xna.Framework.Net Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP