Internet Direct (Indy) Version 9.0.1 Beta
|
procedure CheckForGracefulDisconnect(const ARaiseExceptionIfDisconnected: Boolean); virtual;
CheckForGracefulDisconnect calls ReadFromStack using the value in ARaiseExceptionIfDisconnected and a 1 millisecond timeout to verify that the socket handle is ready to perform a read operation.
ReadFromStack updates the ClosedGracefully property and performs exception handling as specified in ARaiseExceptionIfDisconnected.