Article View: borland.public.cppbuilder.internet.socket
Article #1944Re: Bug? TIdTCPServer does not change Defaultport at runtime
From: RobertL
Date: Fri, 15 Sep 2006 11:51
Date: Fri, 15 Sep 2006 11:51
20 lines
1643 bytes
1643 bytes
Thank you for your quick reply, Gambit.
I wrote a reply at the same evening from home, but it looks at it has got stuck in my providers newsserver, I can see it there, but not in the newsgroup accessed via Webinterface.
In the meantime, I could successfully change the active port.
According to our tip, I had a look at the BINDINGS and with insertion of a Clear() command it worked.
void __fastcall TForm1::Edit1DblClick(TObject *Sender)
{
IdTCPServer1->Active=false;
IdTCPServer1->DefaultPort=StrToInt(Edit1->Text);
IdTCPServer1->Bindings->Clear();
IdTCPServer1->Active=true;
ListBox1->Items->Add( "Port set to: " +
IntToSt(IdTCPServer1->DefaultPort) );
}
Regards Robert
Technical Details
Message-ID:
<450a93d4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4508012b$1@newsgroups.borland.com> <450836b4$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: "RobertL" <nospam@nospam.com> Sender: "RobertL" <nospam@nospam.com> Reply-To: "RobertL" <nospam@nospam.com> Subject: Re: 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 References: <4508012b$1@newsgroups.borland.com> <450836b4$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <450a93d4$1@newsgroups.borland.com> Date: 15 Sep 2006 04:51:48 -0700 X-Trace: newsgroups.borland.com 1158321108 207.105.83.66 (15 Sep 2006 04:51:48 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail