🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#2344
From: Remy Lebeau (TeamB)
Date: Wed, 10 May 2006 21:45
19 lines
1624 bytes
"Brian" <brian@nospam.org> wrote in message
news:44625587$1@newsgroups.borland.com...

> I've tried setting the socket to inactive (Active=false)

That will not work for a non-blocking socket.  Setting the Active property
to false has no effect while the property is still false, and it is not set
to true until the connection is fully established.  You will have to free
the TClientSocket instance instead.

> but the OnIPSessionError event still gets called after the
> timeout period expires.

That is because you did not actually deactivate the TClientSocket, so it
continued on with its work until the socket error was reported.


Gambit
Technical Details
Message-ID: <44625f81@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!feeder.xsnews.nl!newsfeed.kamp.net!newsfeed.kamp.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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dfc86feaed00e40
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: <44625587$1@newsgroups.borland.com>
Subject: Re: Is there a way to allow an 'ABORT' from a TClientSocket connect?
Date: Wed, 10 May 2006 14:45:32 -0700
Lines: 21
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: <44625f81@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1147297665 68.69.17.41 (10 May 2006 14:47:45 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!feeder.xsnews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail