Article View: borland.public.cppbuilder.internet.socket
Article #3797Re: TClientSocket
From: Remy Lebeau (TeamB)
Date: Thu, 28 Apr 2005 18:50
Date: Thu, 28 Apr 2005 18:50
20 lines
1578 bytes
1578 bytes
"Roee Bachar" <mrroee@netvision.net.il> wrote in message news:42711531$1@newsgroups.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
Technical Details
Message-ID:
<427131b0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42711531$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7ec417857cccaef3 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <42711531$1@newsgroups.borland.com> Subject: Re: TClientSocket Date: Thu, 28 Apr 2005 11:50:43 -0700 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <427131b0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114714544 68.69.17.41 (28 Apr 2005 11:55:44 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail