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
- data
Type: PacketWriter
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
Reference
LocalNetworkGamer Class
LocalNetworkGamer Members
Microsoft.Xna.Framework.Net Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP