🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#2345
From: Brian
Date: Wed, 10 May 2006 22:06
23 lines
1633 bytes
Hans Galema <notused@notused.nl> wrote:
>
>And when do you close that dialog ?
>

I close the dialog when the connection process is complete or the
user presses the abort button.

>
>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.
>
I do have a flag, but I cannot have the event handler check it 
because the flag could be from another 'login' process, not the
aborted process.

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

The socket gets deleted when the connection is closed (either
manually or automatically).
Technical Details
Message-ID: <446263f4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news2.euro.net!newsfeed.freenet.de!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> <44625f0c@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
From: "Brian" <brian@nospam.org>
Sender: "Brian" <brian@nospam.org>
Reply-To: "Brian" <brian@nospam.org>
Subject: Re: Is there a way to allow an 'ABORT' from a TClientSocket connect?
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 168.127.0.51     
X-Forwarded-For: 168.127.162.87
References: <44625587$1@newsgroups.borland.com> <44625f0c@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <446263f4$1@newsgroups.borland.com>
Date: 10 May 2006 15:06:44 -0700
X-Trace: newsgroups.borland.com 1147298804 207.105.83.66 (10 May 2006 15:06:44 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail