🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem with TIdTime

#3977
From: Remy Lebeau (TeamB)
Date: Tue, 19 Apr 2005 16:49
19 lines
1886 bytes
"Jerry Xiao" <blackart0@sina.com.cn> wrote in message
news:4264c219$2@newsgroups.borland.com...

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

You already know the answer to that, because you are already doing it.
Whatever problem you are having is NOT in the code you have been showing so
far, because there is no problem in the code you have shown.

> 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.

Yes, it is.  SetHost() is the writer method for the Host property.  If you
assign the Host property, SetHost() is guaranteed to be called.  There is no
way for it not to be called.


Gambit
Technical Details
Message-ID: <426535f0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!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> <4264c219$2@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
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> <4264c219$2@newsgroups.borland.com>
Subject: Re: Problem with TIdTime
Date: Tue, 19 Apr 2005 09:49:00 -0700
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <426535f0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1113929200 68.69.17.41 (19 Apr 2005 09:46:40 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail