Click or drag to resize

PacketChangedEventArgsExtensionsGetPacket Method

Gets the packet received from the network that caused this event to be raised. Throws an exception if the packet has already been read from the socket.

Namespace:  Demo3D.Net
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public static IPacketReader GetPacket(
	this PacketChangedEventArgs args
)

Parameters

args
Type: Demo3D.NetPacketChangedEventArgs
The packet event args.

Return Value

Type: IPacketReader
The packet that raised the event.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PacketChangedEventArgs. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The caller must Dispose the packet.
See Also