Click or drag to resize

PacketNeedsPacketResponse Property

Gets value indicating if this packet expects a response packet.

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Overridable ReadOnly Property NeedsPacketResponse As Boolean
	Get

Property Value

Type: Boolean
True if the packet expects a response, otherwise False.
Remarks
This function is called internally during the Loconet read phase to match response packets to transmitted packets waiting for a response. The base implementation gets this value from one of the bits in the first packet byte (as per spec). This is appropriate for most packet types, however some packets may deviate from this default behavior. For those, this property must be overridden.

If this property returns True, ValidPacketResponse(Packet) should be overridden in derived classes.

See Also