Re: Does changing DefaultPort in IdFTPServer should require Bindings clear?

Giganews Newsgroups
Subject: Re: Does changing DefaultPort in IdFTPServer should require Bindings clear?
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Tue, 25 Aug 2009

"Tomasz B" <t.berg.REMO…@slican.pl> wrote in message
news:7698BA3CBC8DE340t.berg.REMO…@slican.pl...

> I though that changing DefaultPort when server is not active
> should be enough to apply port number changes.

Nope.  The DefaultPort property is only used when adding new entries to the
Bindings collection.  Changing the DefaultPort has no effect on existing
entries.

> it looks like I've to clear bindings also.

Yes.  Or alternatively you can loop through the existing entries updating
their Port property directly.

--
Remy Lebeau (Indy Team)

Replies

In response to

Does changing DefaultPort in IdFTPServer should require Bindings clear? posted by Tomasz B on Fri, 21 Aug 2009