Article View: borland.public.cppbuilder.internet.socket
Article #5400Re: TIdTCPClient->Connect() Timeout
From: Don Siders
Date: Wed, 01 Sep 2004 20:42
Date: Wed, 01 Sep 2004 20:42
26 lines
1949 bytes
1949 bytes
> I have downloaded and installed Indy 9.00.14.
> The compiler will not let me use a Timeout parameter
> with connect ie MySocket->Connect(CONNECT_TIMEOUT);
> From what I can tell this ability was added after Indy ver.
> 8.x and is gone in Indy 10.
> But why can't the compiler find it in 9.00.14?
> (The folder is at the top of the LIBRARY list, can't find any
> references to the old version, etc.)
> What's the best way to implement a timeout or resolve the above?
Download an updated version of the Indy 9 source from the version control server or one of the mirror sites. It does exist, and it's declared as:
procedure Connect(const ATimeout: Integer = IdTimeoutDefault); virtual;
IdVers.inc from the version control server contains:
gsIdProductName = 'Indy'; {do not localize}
// Delphi 9 - 9.0.50
gsIdVersion = 'DevSnapshot'; {do not localize}
In Indy 10, it is the ConnectTimeout property.
Technical Details
Message-ID:
<413634c5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41362684$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6323fc9d9de06a22 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Don Siders" <mudshark@rancidbud.org> Newsgroups: borland.public.cppbuilder.internet.socket References: <41362684$1@newsgroups.borland.com> Subject: Re: TIdTCPClient->Connect() Timeout Date: Wed, 1 Sep 2004 16:42:44 -0400 Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 24.241.192.111 Message-ID: <413634c5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1094071493 24.241.192.111 (1 Sep 2004 13:44:53 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail