 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Roee Bachar Guest
|
Posted: Thu Apr 28, 2005 5:54 am Post subject: TClientSocket |
|
|
Hi,
I'm using TClientSocket object.
When I'm calling the Open() method without any server listening at the other
side I'm receiving the following error message "Asynchronous socket error
100060" ("A connection attempt failed because the connected party did not
properly respond after a period of time").
It happens even if I call the Close() method before the timeout occurs
How can I eliminate this message...
Thanks.
|
|
| Back to top |
|
 |
Roee Bachar Guest
|
Posted: Thu Apr 28, 2005 9:34 am Post subject: Re: TClientSocket |
|
|
Thanks for the tip, it solved problem (the error I get is 10060).
Roee.
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
| Quote: |
"Roee Bachar" <mrroee (AT) netvision (DOT) net.il> wrote in message
news:42711531$1 (AT) newsgroups (DOT) borland.com...
When I'm calling the Open() method without any server listening
at the other side I'm receiving the following error message
If there is no server listening, you should be getting an 10061 error, not
10060.
How can I eliminate this message
You did not say whether you are using blocking or non-blocking mode. I am
going to assume that you are using non-blocking, since that is
TClientSocket's default mode. In which case, assign an OnError event
handler to the TClientSocket, and set the ErrorCode parameter to 0 to
prevent the exception from being raised.
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Apr 28, 2005 6:50 pm Post subject: Re: TClientSocket |
|
|
"Roee Bachar" <mrroee (AT) netvision (DOT) net.il> wrote
| Quote: | When I'm calling the Open() method without any server listening
at the other side I'm receiving the following error message
|
If there is no server listening, you should be getting an 10061 error, not
10060.
| Quote: | How can I eliminate this message
|
You did not say whether you are using blocking or non-blocking mode. I am
going to assume that you are using non-blocking, since that is
TClientSocket's default mode. In which case, assign an OnError event
handler to the TClientSocket, and set the ErrorCode parameter to 0 to
prevent the exception from being raised.
Gambit
|
|
| 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
|
|