-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 17 February 2003 12:31 pm, Dave Hooper wrote:
> > > So, as originally stated, how to find the *actual* mainport.Port used
> > > by fred in such a case?  And in general terms how to achieve this for
> > > any %'d conf value.
>
>                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> > You do not need to. Just default to 8888 and if the config file
> > overrides it, then use that. And provide a way for the user to override
> > it.
>
> ... And in general terms?!
> How. Can. An. External. App. Find. Out. What. Fred. Uses. As. A. Default.
> Value?  Please?  Imagine the user's config file hasn't been updated for
> some time, and contains the line %defaultHTL=25 .  Suppose a GUI
> configurator wants to show the user what the default is.  It can obviously
> not rely on the value encoded by %defaultHTL for the reasons you've already
> stated: it's a default that the devs are free to change in subsequent
> releases of fred and the % indicates it's merely a comment that can be
> ignored.
>
> So once again I refer to my previous mails - the only way I can think of is
> to create a dummy freenet.defaults by running configure with the --silent
> option, and parse that.  Is there any other way, yes, or no?

There should be an app to read in the configuration file, and then output it 
with the latest defaults, but with user-provided values from the old config 
in as well.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+UTqQx533NjVSos4RAuYOAKDaBdznMBv/KzVvoHWrXXMyax85SwCgo9fw
AtmJBA9Zj/8sIqdNOQzc/0o=
=Kknn
-----END PGP SIGNATURE-----

_______________________________________________
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl

Reply via email to