🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TClientSocket and error events

#3191
From: Remy Lebeau (TeamB)
Date: Tue, 25 Oct 2005 20:50
22 lines
1754 bytes
"Stormy" <s70rmy@hotmail.com> wrote in message
news:435e81f9@newsgroups.borland.com...

> if you try to connect TClientSocket to server that doesn't exist,
> OnError event gets triggered with error code #11001.

As it should.  11001 is WSAHOST_NOT_FOUND.

> OK. Now if you try to connect same socket to server that does
> exist and is running, OnError event gets triggered again (for some
> reason unknown to me)

Probably because TClientSocket is not fully cleaning up after itself in that
situation.

> with error #10049. If you

10049 is WSAEADDRNOTAVAIL


Gambit
Technical Details
Message-ID: <435e99f2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <434eecdf@newsgroups.borland.com> <434f0102$1@newsgroups.borland.com> <434f5fe5@newsgroups.borland.com> <434f6246$1@newsgroups.borland.com> <434fa1c3@newsgroups.borland.com> <434ff0ad$2@newsgroups.borland.com> <435e81f9@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,bc23240211b4e678
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: <434eecdf@newsgroups.borland.com> <434f0102$1@newsgroups.borland.com> <434f5fe5@newsgroups.borland.com> <434f6246$1@newsgroups.borland.com> <434fa1c3@newsgroups.borland.com> <434ff0ad$2@newsgroups.borland.com> <435e81f9@newsgroups.borland.com>
Subject: Re: TClientSocket and error events
Date: Tue, 25 Oct 2005 13:50:23 -0700
Lines: 24
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: <435e99f2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1130273266 68.69.17.41 (25 Oct 2005 13:47:46 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail