Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPClient.ConnectAndGetAll
Opens a connection and reads all data.

function ConnectAndGetAll: string; virtual;
Returns
String - Values read from the connection.

Description
ConnectAndGetAll is a String function that opens a connection to the server specified by Host using the port number specified by Port. ConnectAndGetAll reads data from the connection until disconnected by the server.

Make sure that the protocol you are using behaves in this manner before using ConnectAndGetAll. Quote of the Day and DayTime are examples of protocols where ConnectAndGetAll is supported.