Article View: borland.public.cppbuilder.internet.socket
Article #75Re: Trouble with TcpClient component
From: Carlos Moreno
Date: Mon, 21 Apr 2008 16:55
Date: Mon, 21 Apr 2008 16:55
55 lines
2689 bytes
2689 bytes
Hi Remy!
>TClientSocket is deprecated, but it is still available in BCB 2007 (install
>the dclsockets100.bpl packet), and works the same as it did before.
OH!! That's actually good news, I guess... (I'm somewhat
having a flashback of having been told this long ago --- C++
Builder 2006, perhaps? ... But I think at the time I did not
have much reasons to want to migrate, so a default that did
not directly support my existing application felt enough to
decide not to migrate... It is also conveivable that I'm
just having a random deja-vu when reading your comment above)
>> and the closest thing seems to be TcpClient
>
>TTcpClient is nowhere even close to TClientSocket.
From your description, I now completely agree with you...
The thing is, it does have about the same properties, the
same events, and the little docs available give descriptions
that suggest that the functionality is indeed the same.
For instance, this is BC++B6's description of OnReceive for
TTcpClient:
"Occurs after a socket receives data, but before it passes the
data to the application
[ ... ]
Description
Write an OnReceive event handler to read from the socket
connection ..."
I don't know, maybe I'm misinterpreting the above, but it did
sound a lot like a description of how TClientSocket works! :-(
> I strongly recommend not using them at all.
You definitely sold your case, no argument there!
>> I pretty much ignore the OnSend event
>
>That is a mistake [ ... ]
Well, I was simplifying a bit my post --- I do handle the
possibility of overflowing the local buffer when transmitting.
But good to hear the additional comments about the issue.
Thanks again! Your message was extremely helpful!!
Carlos
--
Technical Details
Message-ID:
<480cc711$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<480cb8b5$1@newsgroups.borland.com> <480cc2b6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9f8efd9a63590eec X-Google-Attributes: gid11508e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Carlos Moreno" <moreno_h3gd@mochima.com> Sender: "Carlos Moreno" <moreno_h3gd@mochima.com> Reply-To: "Carlos Moreno" <moreno_h3gd@mochima.com> Subject: Re: Trouble with TcpClient component Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 72.171.0.138 References: <480cb8b5$1@newsgroups.borland.com> <480cc2b6$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <480cc711$1@newsgroups.borland.com> Date: 21 Apr 2008 09:55:45 -0700 X-Trace: newsgroups.borland.com 1208796945 207.105.83.66 (21 Apr 2008 09:55:45 -0700) Lines: 56 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail