| View previous topic :: View next topic |
| Author |
Message |
Halim Boumedjirek Guest
|
Posted: Tue Dec 30, 2003 11:35 pm Post subject: Indy component help : tIdTCPClient |
|
|
Is there a way to set a timeout for: tIdTCPClient.connect ?
I want to TRY to connect to the server and wait 100 milliseconds(timeout)
only and display the message "Connection cannot be established!" after 100
milliseconds.
What property should I use to set my own wait time or timeout.
Bottom line, is there a way to handle the connect exception after timeout?
Thanks,
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Dec 31, 2003 3:11 am Post subject: Re: Indy component help : tIdTCPClient |
|
|
"Halim Boumedjirek" <hboumedjirek (AT) idealss (DOT) com> wrote
| Quote: | Is there a way to set a timeout for: tIdTCPClient.connect ?
|
I assume that you are still using the older Indy 8 version, because a
Timeout parameter was added to Connect() in Indy 9.
Gambit
|
|
| Back to top |
|
 |
Halim Boumedjirek Guest
|
Posted: Wed Dec 31, 2003 2:24 pm Post subject: Re: Indy component help : tIdTCPClient |
|
|
Yes you are right. I am upgrading right now.
Thanks,
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote
| Quote: |
"Halim Boumedjirek" <hboumedjirek (AT) idealss (DOT) com> wrote in message
news:3ff20bb8$1 (AT) newsgroups (DOT) borland.com...
Is there a way to set a timeout for: tIdTCPClient.connect ?
I assume that you are still using the older Indy 8 version, because a
Timeout parameter was added to Connect() in Indy 9.
Gambit
|
|
|
| Back to top |
|
 |
|