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 

TClientSocket

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket)
View previous topic :: View next topic  
Author Message
Roee Bachar
Guest





PostPosted: Thu Apr 28, 2005 5:54 am    Post subject: TClientSocket Reply with quote



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





PostPosted: Thu Apr 28, 2005 9:34 am    Post subject: Re: TClientSocket Reply with quote



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





PostPosted: Thu Apr 28, 2005 6:50 pm    Post subject: Re: TClientSocket Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket) 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.