> > 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?
dave
_______________________________________________
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl