LocalNetworkGamer.SendData Method (Byte , Int32, Int32, SendDataOptions)
Sends a selected portion of 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 (in microsoft.xna.framework.dll)
Syntax
public void SendData (
byte[] data,
int offset,
int count,
SendDataOptions options
)
Parameters
- data
Byte array containing session data. - offset
Offset, in bytes, to the start of the data. - count
Amount, in bytes, of data sent. - options
Enumeration containing data send options.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | data is null. |
ArgumentOutOfRangeException |
|
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 XP SP2, Windows Vista, Zune