Article View: borland.public.cppbuilder.internet.socket
Article #2019Bug? TIdTCPServer does not change Defaultport at runtime
From: RobertL
Date: Wed, 13 Sep 2006 13:01
Date: Wed, 13 Sep 2006 13:01
19 lines
1363 bytes
1363 bytes
Hi all,
with this code I try to change the defaultport property and it shows the desired port in the listbox, but allways the port set at designtime is active, there is no change to the new value.
Is this a bug? Or am I doing something wrong)
I use Indy 9 and BDS2006.
...
void __fastcall TForm1::Edit1DblClick(TObject *Sender)
{
IdTCPServer1->DefaultPort=StrToInt(Edit1->Text);
ListBox1->Items->Add( "Port set to: " +
IntToStr(IdTCPServer1->DefaultPort) );
}
...
Regards Robert
Technical Details
Message-ID:
<4508012b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2bfb95212ddcbc6d,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "RobertL" <nospam@nospam.com> Sender: "RobertL" <nospam@nospam.com> Reply-To: "RobertL" <nospam@nospam.com> Subject: Bug? TIdTCPServer does not change Defaultport at runtime Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 145.253.232.148 X-Forwarded-For: unknown NNTP-Posting-Host: 207.105.83.66 Message-ID: <4508012b$1@newsgroups.borland.com> Date: 13 Sep 2006 06:01:31 -0700 X-Trace: newsgroups.borland.com 1158152491 207.105.83.66 (13 Sep 2006 06:01:31 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail