GXDN: Gurux Developer Network
IsReplyPacketEventHandler Delegate
NamespacesGurux.ClientIsReplyPacketEventHandler
GXClient component calls this method when it checks if the received packet is a reply packet.
Parameters
sender (GXClient)
The source of the event.
sendPacket (GXPacket)
Sent packet that is waiting for reply.
receivedPacket (GXPacket)
Received packet.
isReplyPacket ( Boolean %)
True, if received packet is a reply to the sent packet.
Remarks
GXComClient calls this method when it receives a new packet. This method checks if the received packet is the response to the sent packet. The response depends on the used protocol. GXClient goes through all sent packets one by one until isReplyPacket is set to True. If this method is not implemented GXCom assumes that received packet is a reply packet for the first sent packet.
Examples
CopyVBScript
sub GXSClient1_IsReplyPacket(object SendPacket, object ReceivedPacket, bool isReplyPacket)
    'if received packet is not answer to send packet.
    'In this example we expect that the packet ID of the sent packet is the same as the packet ID of the received packet.
    isReplyPacket = GXSendPacket.PacketId = GXReceivedPacket.PacketId
end sub
See Also

Assembly: Gurux.Client (Module: Gurux.Client) Version: 5.0.0.1