🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IdTCPClient Connected question

#1386
From: Remy Lebeau (TeamB)
Date: Fri, 26 Jan 2007 18:12
29 lines
1976 bytes
"Dennis Jones" <nospam@nospam.com> wrote in message
news:45b9a652$1@newsgroups.borland.com...

> I apparently do not have the same documentation you do.

I quoted from the online documentation at Indy's website.

> According to that description, "is available for input/ouput
operations" and
> "when the socket handle in Binding has been assigned and allocated"
both
> suggests (as I read it) that Connected should return false unless
the
> connection has been fully established (bound) and I can send/receive
data.

The second part has nothing to do with whether the connection is
established.  A "bound" socket is not an "established" socket.
Binding, in this case, means the socket has been allocated in memory
and is bound (the API bind() function) to a local network adapter.

> Are you reading Indy10 docs?

Yes.  Those the basic logic of how Connected() works is the same in
Indy 9 as well.


Gambit
Technical Details
Message-ID: <45ba4470$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45b9274f@newsgroups.borland.com> <45b938e2$1@newsgroups.borland.com> <45b95649$1@newsgroups.borland.com> <45b97154$1@newsgroups.borland.com> <45b9882b$1@newsgroups.borland.com> <45b999a5$1@newsgroups.borland.com> <45b9a652$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e8cbc2087e955870
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: <45b9274f@newsgroups.borland.com> <45b938e2$1@newsgroups.borland.com> <45b95649$1@newsgroups.borland.com> <45b97154$1@newsgroups.borland.com> <45b9882b$1@newsgroups.borland.com> <45b999a5$1@newsgroups.borland.com> <45b9a652$1@newsgroups.borland.com>
Subject: Re: IdTCPClient Connected question
Date: Fri, 26 Jan 2007 10:12:32 -0800
Lines: 31
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: 75.83.34.171
Message-ID: <45ba4470$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1169835120 75.83.34.171 (26 Jan 2007 10:12:00 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail