Article View: borland.public.cppbuilder.internet.socket
Article #1384Re: IdTCPClient Connected question
From: Dennis Jones
Date: Fri, 26 Jan 2007 06:58
Date: Fri, 26 Jan 2007 06:58
35 lines
2518 bytes
2518 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:45b999a5$1@newsgroups.borland.com... > > Then you did not read it very carefully: No, I read it fine. I apparently do not have the same documentation you do. Here's the full quote from TIdTCPConnection.Connected: "Connected is a Boolean function used to indicate when the connection to the peer is open and active. Connected calls CheckForDisconnect to to determine if the connection was closed normally or abruptly terminated, and returns true when the IOHandler indicates that it is Connected." Further, my documentation makes no mention of TIdIOHandlerStack whatsoever and the description for TIdIOHandlerSocket.Connected says: "Connected is an overriden Boolean function in TIdIOHandlerSocket that implements the method used to determine when the physical connection for the handler has been established, and is available for input/output operations. Connected will indicate when the socket handle in Binding has been assigned and allocated." 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. I don't know what documentation you have, but it sure doesn't match what I have. Are you reading Indy10 docs? - Dennis
Technical Details
Message-ID:
<45b9a652$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-mailReferences:
<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>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e8cbc2087e955870 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.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> Subject: Re: IdTCPClient Connected question Date: Thu, 25 Jan 2007 22:58:11 -0800 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 71.245.109.58 Message-ID: <45b9a652$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1169794642 71.245.109.58 (25 Jan 2007 22:57:22 -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