Topic Path: Pending > TIdIOHandler.WaitFor@string

Reads data from the IOHandler until a specified string is found.

Value to look for for in the internal buffer for the IOHandler. 

string - All value read from the IOHandler buffer until the value in AString occurs.

WaitFor is a string function used to inspect the internal buffer for the IOHandler for the value specified in AString. WaitFor will pause indefinitely until the value in AString appears in InputBuffer. 

WaitFor calls CheckForDataOnSource to determine if data is available in the unbuffered communication layer for the connection. 

WaitFor calls CheckForDisconnect to check the state and status information for the IOHandler transport.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.