Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > AllData Method
TIdIOHandler.AllData Method

Retrieves all data from a connection.

function AllData: string; virtual;

string - Data read from the connection.

AllData is a virtual String function that retrieves data from a peer connection until the connection is closed. 

AllData triggers the OnWorkBegin event handler by calling BeginWork

While the connection is open, AllData calls CheckForDataOnSource to determine if data is available on the underlying data source. Data is accumulated by calling InputBufferAsString until the connection is closed. The return value for the method consists of the accumulated string values from InputBufferAsString

AllData triggers the OnWorkEnd event handler by calling EndWork

Do not use AllData unless the communications protocol supports using the connection in this manner. Protocols which support AllData include Finger, Quote of the Day, and WhoIs.

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