BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Urgent. How to know if the FTP server was down while tranfer

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
ezecco
Guest





PostPosted: Sat Oct 18, 2003 11:17 am    Post subject: Urgent. How to know if the FTP server was down while tranfer Reply with quote



When uploading/downloading, if the ftp server shutdown, how can I know that
? I am using indy 9.0.0.14.

Thanks.


Back to top
Martin James
Guest





PostPosted: Sat Oct 18, 2003 11:46 am    Post subject: Re: Urgent. How to know if the FTP server was down while tra Reply with quote




"ezecco" <ezecco (AT) hotmail (DOT) com> wrote

Quote:
When uploading/downloading, if the ftp server shutdown, how can I know
that
? I am using indy 9.0.0.14.

TidFTP has a timeout property. Not sure what it's called exactly,
(timeout? readTimeout?), but it does work.

Rgds,
Martin





Back to top
AKZ
Guest





PostPosted: Sat Oct 18, 2003 12:08 pm    Post subject: Re: Urgent. How to know if the FTP server was down while tra Reply with quote



wrap it into try..except block and you will get exception if somethign is
wrong... including server shutdown.

"ezecco" <ezecco (AT) hotmail (DOT) com> wrote

Quote:
When uploading/downloading, if the ftp server shutdown, how can I know
that
? I am using indy 9.0.0.14.

Thanks.





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.