🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Hair 0, Indy10 1

#147
From: Remy Lebeau (TeamB)
Date: Tue, 03 Jun 2008 18:57
43 lines
2698 bytes
"Gene Buckle" <geneb@grumble.deltasoft.com> wrote in message 
news:4845851e@newsgroups.borland.com...

> Thanks Dennis.  I read and re-read the docs and still couldn't make it 
> work.

What EXACTLY are you having trouble with?  You haven't answered my last 
message yet.

> I threw it out and started using the "TTCPClient" control that
> came with RAD Studio.

Ouch!  That is a bad component to use, in my opinion.  It was Borland's 
attempt at a cross-platform socket component, but it was implemented very 
poorly, requiring a lot of extra manual work on your part.  I strongly 
suggest staying away from it.  Even Borland's TClientSocket is better to use 
than TTcpClient.

> Strangely enough (ok, not strangely, "typically"), there's no
> documentation on it at all in the help files.

TTcpClient is a CLX component, not a VCL component.  Did you look in the CLX 
documentation?

> I'd like to be able to set a timeout value for the
> TTCPClient->Receiveln() method

TTcpClient does not expose any timeouts.

> but so far have had no luck in locating such a thing.

Because it doesn't exist in TTcpClient.  You would have to call the socket 
API's setsockopt() function directly instead, setting the SO_RCVTIMEO value.

> For the record, TTcpClient worked as expected - set the
> host, the port and call connect.  *bing* it works.

So does TIdTCPClient when used properly.  Again, please answer my last 
message regarding that.


Gambit 
Technical Details
Message-ID: <48459486$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.85.MISMATCH!feed.xsnews.nl!border-2.ams.xsnews.nl!ecngs!feeder2.ecngs.de!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <48406d41@newsgroups.borland.com> <48407d4c$1@newsgroups.borland.com> <48408535@newsgroups.borland.com> <48442d6c$1@newsgroups.borland.com> <4845851e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9339fc05f2f275c
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <48406d41@newsgroups.borland.com> <48407d4c$1@newsgroups.borland.com> <48408535@newsgroups.borland.com> <48442d6c$1@newsgroups.borland.com> <4845851e@newsgroups.borland.com>
Subject: Re: Hair 0, Indy10 1
Date: Tue, 3 Jun 2008 11:57:52 -0700
Lines: 45
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <48459486$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1212519558 207.178.157.90 (3 Jun 2008 11:59:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.85.MISMATCH!feed.xsnews.nl!border-2.ams.xsnews.nl!ecngs!feeder2.ecngs.de!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail