Article View: borland.public.cppbuilder.internet.socket
Article #3773Socket error
From: Maurice
Date: Sat, 25 Jun 2005 18:57
Date: Sat, 25 Jun 2005 18:57
21 lines
1511 bytes
1511 bytes
Hello,
When my client application tries to connect to a server that is not
running I get the following message:
Asynchronous socket error 10061.
I understand this is what should happen under this circumstance. Is it
possible to stop this warning and give a 'server not found' or 'not
connected' warning instead? The code snippet is given below.
void __fastcall TForm1::ConnectToServerButtonClick(TObject *Sender)
{
ClientSocket1->Port = 23;
ClientSocket1->Host = Edit3->Text;
ClientSocket1->Active = True;
}
I am using BCB6 personel and XP.
Maurice
Technical Details
Message-ID:
<42bda937$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4a8a8069ad9fae3f,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 25 Jun 2005 19:57:59 +0100 From: Maurice <moheneghan@netscape.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Socket error Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.107.73.25 Message-ID: <42bda937$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119725879 81.107.73.25 (25 Jun 2005 11:57:59 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail