 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Siegfried Wessler Guest
|
Posted: Wed Oct 22, 2003 1:32 pm Post subject: Timeout using TIdTCPClient.Connect |
|
|
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
|
Posted: Wed Oct 22, 2003 6:42 pm Post subject: Re: Timeout using TIdTCPClient.Connect |
|
|
"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
|
Posted: Wed Oct 29, 2003 11:39 am Post subject: Re: Timeout using TIdTCPClient.Connect |
|
|
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 |
|
 |
|
|
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
|
|