|
CfgTie::TieServ -- A HASH tie that allows access the service port database |
CfgTie::TieServ -- A HASH tie that allows access the service port database
tie %serv,'CfgTie::TieServ';
print $serv{'smtp'};
This is a straight forward HASH tie that allows us to access the service port database sanely.
There are two ties available for programers:
tie %serv,'CfgTie::TieServ'$serv{$name} will return a HASH reference of the named service
information
tie %serv_port,'CfgTie::TieServ_port'$serv_port{$port} will return a HASH reference for the specified service
port.
Any given serv entry has the following information assoicated with it:
NameAliasesPortProtocolAdditionally, the programmer can set any other associated key, but this information will only available to running PERL script.
the CfgTie::Cfgfile manpage, the CfgTie::TieAliases manpage, the CfgTie::TieGeneric manpage, the CfgTie::TieGroup manpage, the CfgTie::TieHost manpage, the CfgTie::TieNamed manpage, the CfgTie::TieNet manpage, the CfgTie::TiePh manpage, the CfgTie::TieProto manpage, the CfgTie::TieShadow manpage, the CfgTie::TieUser manpage
The current version does cache some service information.
Randall Maas (randym@acm.org)
|
CfgTie::TieServ -- A HASH tie that allows access the service port database |