Share via


LocalNetworkGamer.SendData Method (PacketWriter, SendDataOptions)

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

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

Syntax

public void SendData (
         PacketWriter data,
         SendDataOptions options
)

Parameters

  • data
    Byte array containing session data.
  • options
    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

How To: Send Data

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune