🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5292

Re: ESocketError

#5292
From: Hans Galema
Date: Sun, 19 Sep 2004 09:09
27 lines
1885 bytes
Remy Lebeau [TeamB] wrote:

>>An Exception is thrownwhen for instance the Host
>>is not known.
> 
> Yes, but it is not thrown when you think it is thrown.  That
> is why his code is not working the way he is expecting it to work.  The exception is thrown long after his exception handling code has already been passed through, because the exception is thrown in the context of a message handler that is triggered long after Open() has already finished its work.

Please wrap lines. (Fist time that you didn't).

Well what I think is what happens. Here an exception is trown
when the Host does not exist:

	try
		{
		CLientSocket1->Open()
		}
	catch ( Exception &exception )
		{
		ShowMessage ( ... );
		}

If the host exists but the server is not running then
indeed this exception will not throw and you have to
look at other events.

Hans.
Technical Details
Message-ID: <414d4c10@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <414b8772$1@newsgroups.borland.com> <414bf1dc$1@newsgroups.borland.com> <414cb05a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2a74cb97a91b535d
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 19 Sep 2004 11:09:30 +0200
From: Hans Galema <dontusethis@dontusethis.nl>
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: ESocketError
References: <414b8772$1@newsgroups.borland.com> <414bf1dc$1@newsgroups.borland.com> <414cb05a$1@newsgroups.borland.com>
In-Reply-To: <414cb05a$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <414d4c10@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095584784 129.125.201.248 (19 Sep 2004 02:06:24 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail