function WaitForData(Timeout: integer = -1): boolean;
Waits for data from the TLS/SSL server during the period of time specified in Timeout (in milliseconds), and then returns control. The calling thread will wait indefinitely when Timeout is set to -1.
When data from the server has been received and is available for reading from the buffer, the method returns True. Otherwise, False.