Author Topic: WaitForBytes  (Read 1261 times)

victor1601

  • Newbie
  • *
  • Posts: 1
    • View Profile
WaitForBytes
« on: April 16, 2013, 09:51:30 pm »
I have a TnrComm component in my program and I am going to use WaitForBytes(Count:cardinal;Ms:cardinal) method. If Count bytes are met before the Ms millisecond, will function return True or does it wait for Ms milliseconds to return True value?

Thanks

Victor Granados

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: WaitForBytes
« Reply #1 on: August 30, 2013, 06:09:33 am »
Hello

Yes WaitForBytes() returns immediately after necessary count of byte is received.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.