Commit | Line | Data |
406c51ee |
1 | Hopefully the next release of libnet will be release 2.00. For this |
2 | release I want to completely re-write the configuration system. |
3 | |
4 | My current thoughts are that a hash of values is not sufficient and that |
5 | Net::Config should be code. This is what I have planned, if you see any |
6 | problems or have any ideas please let me know by sending an Email |
7 | to gbarr@pobox.com |
8 | |
9 | Net::Config will become an object based interface. Methods will be called |
10 | as static methods on the package. Net::Config will inherit from |
11 | Net::LocalCfg and Net::Config::default. Net::LocalCfg is a package |
12 | that local sys-admins can write to override the defaulr behaviour of |
13 | Net::Config. |
14 | |
15 | Most of the variables that are currently stored in Net::Config will |
16 | be turned into method calls, eg $NetConfig{'nntp_hosts'} will |
17 | become Net::Config->nntp_hosts |
18 | |
19 | This approach will allow for a better implementation of the firewall code, |
20 | which currently makes a lot of assumptions. To aid this Net::Config::default |
21 | will provide a method 'reachable' which will take a single argument as |
22 | a hostname and should return true it the host is reachable directly. |
23 | |
24 | This will also allow people who have dialup accounts, and appear in different |
25 | domains at different times, to do what they need. |
26 | |
27 | Graham |
28 | gbarr@pobox.com |