Click or drag to resize

MessageEventArgsMessageTypeTryGetPacket Method

Gets the message received from the network that caused this event to be raised. Returns null if the message 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 MessageType TryGetPacket()

Return Value

Type: MessageType
The message that raised the event, or null if that message has already been read from the socket.
Remarks
This method should consume the message from the event and consume any header data from the underlying stream. The message will be Disposed when all the callbacks raised on the DataChanged event return.
See Also