Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   GetPacketNumber usage (http://www.chiefdelphi.com/forums/showthread.php?t=43685)

Joshua Lynn 10-02-2006 08:02

GetPacketNumber usage
 
Can it be determined that there is fresh data from the OI By detecting a change in the Packet Number?

The goal is to perform some actions only once when new data arrives.

tnx

BradAMiller 11-02-2006 09:10

Re: GetPacketNumber usage
 
Quote:

Originally Posted by Joshua Lynn
Can it be determined that there is fresh data from the OI By detecting a change in the Packet Number?

The goal is to perform some actions only once when new data arrives.

tnx

Yes, I didn't think it was necessary at first, but ended up adding it later for exactly that reason. The number is just a byte so it wraps around, so just look for changes to know if a new packet is there.


All times are GMT -5. The time now is 20:29.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi