Click or drag to resize

PacketValidPacketResponse Method

Gets value indicating if given packet is a valid response for this packet.

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Overridable Function ValidPacketResponse ( 
	objResponsePacket As Packet
) As Boolean

Parameters

objResponsePacket
Type: RRAutoLib.LoconetPacket
Response packet to be checked for validity.

Return Value

Type: Boolean
True if objResponsePacket is a valid response for this packet; 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 always returns True. Derived classes should override the base implementation when NeedsPacketResponse returns True.
See Also