Topic Path: Symbol Reference > Classes > TIdIOHandlerStream Class > TIdIOHandlerStream Methods > CheckForDisconnect Method
TIdIOHandlerStream.CheckForDisconnect Method

Checks state and status information on the transport for the IO handler.

procedure CheckForDisconnect(
    ARaiseExceptionIfDisconnected: Boolean = True; 
    AIgnoreBuffer: Boolean = False
); override;
Indicates if exceptions are raised when the connection has closed prematurely.
Indicates if data in the Indy buffer is ignored when the connection has closed prematurely. 

CheckForDisconnect is an overridden procedure used to inspect the status of the connection prior to or following a method call that performs an IO operation. 

CheckForDisconnect is used primarily to ensure that state and status properties for the IOHandler are synchronized with the underlying transport mechanism. 

CheckForDisconnect is an empty implementation in TIdIOHandlerStream. It is used to implement the abstract virtual method from the ancestor class.

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