🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem with TIdTime

#4073
From: Jerry Xiao
Date: Tue, 19 Apr 2005 09:32
22 lines
2124 bytes
thank for your reply!


>The *ONLY* way to get the kind of error
>you are seeing is if you are not providing valid Host/port values to begin
>with, such that you are trying to connect to a non-existant server.  There
>is *NO* difference between assigning the values at design-time rather than
>run-time.
>

you are right,i get the TIdTime's Status output,the time client program didn't connect the valid host(i assigned the host at run-time),

so,now my problem is how to assigning the host at run-time.

it look like not succeed.
//====================================
IdTime1->Host = cbxServer->Text;
Edit1->Text = IdTime1->DateTime.FormatString("yyyy.mm.dd hh:nn:ss")
//====================================

i track the indy's library, it look like that the IdTCPClient's method "SetHost()"  not execute when i assigning the host at run-time.
Technical Details
Message-ID: <4264c219$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <425b1b4c@newsgroups.borland.com> <425b269b$1@newsgroups.borland.com> <425b2be5$1@newsgroups.borland.com> <425b6551$1@newsgroups.borland.com> <425f1490$1@newsgroups.borland.com> <425f4f35$1@newsgroups.borland.com> <425f62f7$1@newsgroups.borland.com> <42603253@newsgroups.borland.com> <426209d7$1@newsgroups.borland.com> <4264632a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d8d96485ad860d2b
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jerry Xiao" <blackart0@sina.com.cn>
Sender: "Jerry Xiao" <blackart0@sina.com.cn>
Reply-To: "Jerry Xiao" <blackart0@sina.com.cn>
Subject: Re: Problem with TIdTime
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 61.181.210.162     
References: <425b1b4c@newsgroups.borland.com> <425b269b$1@newsgroups.borland.com> <425b2be5$1@newsgroups.borland.com> <425b6551$1@newsgroups.borland.com> <425f1490$1@newsgroups.borland.com> <425f4f35$1@newsgroups.borland.com> <425f62f7$1@newsgroups.borland.com> <42603253@newsgroups.borland.com> <426209d7$1@newsgroups.borland.com> <4264632a@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4264c219$2@newsgroups.borland.com>
Date: 19 Apr 2005 01:32:25 -0800
X-Trace: newsgroups.borland.com 1113899545 207.105.83.66 (19 Apr 2005 01:32:25 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail