🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Is there a way to allow an 'ABORT' from a TClientSocket connect?

#2343
From: Hans Galema
Date: Wed, 10 May 2006 21:41
19 lines
1604 bytes
Brian wrote:

> During this process, I bring up a 'please wait' dialog that 
> contains an Abort button. 

And when do you close that dialog ?

> I've tried setting the socket to inactive (Active=false), but the
> OnIPSessionError event still gets called after the timeout period
> expires.

You could let the Abort button set a flag which is checked by
the onerroreventhandler. If the flag is set the handler only sets
ErrorCode to 0 and returns. No alerts now.

That leaves you with the problem to delete the TClientSocket.
When are you doing it now ?

Hans.
Technical Details
Message-ID: <44625f0c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44625587$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dfc86feaed00e40
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 10 May 2006 23:41:26 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Is there a way to allow an 'ABORT' from a TClientSocket connect?
References: <44625587$1@newsgroups.borland.com>
In-Reply-To: <44625587$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <44625f0c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1147297548 145.98.201.248 (10 May 2006 14:45:48 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail