History  | 
WaitFor (socket connections) 
Minimum version: 4.0 
Purpose 
Returns any data from the remote host that contains a specified string, returning after the specified wait period if there is no data available immediately. 
WaitFor will return immediately if the string is found in the received data. 
You can access the returned data using Socket.Data. 
An error will be triggered if there is a problem with the connection or the socket object isn't connected when the read is attempted. 
Syntax 
Socket.WaitFor (WaitText, Timeout) 
 Example 
Dim sockme as Socket 
sockme.WaitFor ("I'm the key phrase", 20) 
 | ||||||