🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Bug? TIdTCPServer does not change Defaultport at runtime

#2022
From: Remy Lebeau (TeamB)
Date: Wed, 13 Sep 2006 16:47
18 lines
1696 bytes
"RobertL" <nospam@nospam.com> wrote in message
news:4508012b$1@newsgroups.borland.com...

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

Do you have any items already created in the Bindings collection when you
make the change?  Changing the DefaultPort has no effect on existing items
in the Bindings collection, only on new items that are added to the
collection afterwards.  Each Binding has its own Port property that it
listens on.  That value is initialized by the DefaultPort only when the
Binding is first created.  Changing the DefaultPort does not update the Port
of existing Bindings.


Gambit
Technical Details
Message-ID: <450836b4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.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 09:47:29 -0700
Lines: 20
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: 70.40.40.167
Message-ID: <450836b4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1158166196 70.40.40.167 (13 Sep 2006 09:49:56 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail