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
SyntaxPublic Overridable Function ValidPacketResponse (
objResponsePacket As Packet
) As Boolean
public virtual bool ValidPacketResponse(
Packet objResponsePacket
)
Parameters
- objResponsePacket
- Type: RRAutoLib.LoconetPacket
Response packet to be checked for validity.
Return Value
Type:
BooleanTrue 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