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 

Timeout using TIdTCPClient.Connect

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





PostPosted: Wed Oct 22, 2003 1:32 pm    Post subject: Timeout using TIdTCPClient.Connect Reply with quote



Hello,

when I try to connect to a server that is offline using
TIdTCPClient.Connect it takes a timeout of 10 seconds or so until this
method returns. How can I change this timeout to a shorter value?

I use CLX library shipping with Delphi 6 / Kylix 1 and Indy 8.0.25.

Thank You!
Siegfried.

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Oct 22, 2003 6:42 pm    Post subject: Re: Timeout using TIdTCPClient.Connect Reply with quote




"Siegfried Wessler" <siegfried.wessler (AT) hbm (DOT) com> wrote


Quote:
when I try to connect to a server that is offline using
TIdTCPClient.Connect it takes a timeout of 10 seconds
or so until this method returns. How can I change this
timeout to a shorter value?

For Indy 8, you can't, unless you spawn a new thread that disconnects the
socket sooner. Oterwise, you would need to upgrade to Indy 9, which added a
new Timeout parameter to Connect().


Gambit



Back to top
Siegfried Wessler
Guest





PostPosted: Wed Oct 29, 2003 11:39 am    Post subject: Re: Timeout using TIdTCPClient.Connect Reply with quote



Thank You Remy,

I hoped I wouldn't have to try. And it was a tough way, but I finally
moved to Indy 9.0.14 on both platforms for my application, Delphi and
Kylix. By that way I did the changing from Kylix 1 to Kylix 3, either,
which uses different clx-libraries.

Siegfried.

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.