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.Net (in microsoft.xna.framework.net.dll)

Syntax

public void SendData (
         PacketWriter data,
         SendDataOptions options
)

Parameters

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