Article View: borland.public.cppbuilder.internet.socket
Article #2021Re: Bug? TIdTCPServer does not change Defaultport at runtime
From: Omar Zelaya
Date: Wed, 13 Sep 2006 16:29
Date: Wed, 13 Sep 2006 16:29
26 lines
1707 bytes
1707 bytes
try setting the Active property to false, before changing the DefaultPort
and setting it back to true when done.
"RobertL" <nospam@nospam.com> wrote in message
news:4508012b$1@newsgroups.borland.com...
>
> 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:
<450831c3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4508012b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2bfb95212ddcbc6d X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Omar Zelaya" <ozelaya2010@hotmail.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <4508012b$1@newsgroups.borland.com> Subject: Re: Bug? TIdTCPServer does not change Defaultport at runtime Date: Wed, 13 Sep 2006 10:29:38 -0600 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 200.30.163.212 Message-ID: <450831c3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158164931 200.30.163.212 (13 Sep 2006 09:28:51 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail