Re: INDY9 . FTP-Server disconnect detect

Giganews Newsgroups
Subject: Re: INDY9 . FTP-Server disconnect detect
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Sun, 18 Jul 2004

"Heiko Rompel" <norep…@kohlroula.de> wrote in message
news:AF291A2F51A5E240norep…@kohlroula.de...

> "ondisconnect" works if a use TIDFTP.Disconnect,
> but not if the server disconnect.

If the server disconnects, an exception is thrown the next time the client
accesses the socket.  Simply wrap your client operations in try...except
blocks.

Gambit

Replies

In response to

INDY9 . FTP-Server disconnect detect posted by Heiko Rompel on Sun, 18 Jul 2004