|
CfgTie::TieProto_num -- Ties the protocol number file to a PERL hash |
CfgTie::TieProto, CfgTie::TieProto_num -- Ties the protocol number file to a PERL hash
tie %proto, 'CfgTie::TieProto';
print $proto{'tcp'};
This is a straightforward hash tie that allows us to access the protocol number database sanely.
There are two ties available for programmers:
tie %proto,'CfgTie::TieProto'$proto{$name} will return a hash reference of the named protocol
information
tie %proto_num,'CfgTie::TieProto_num'$proto_num{$num} will return a hash reference for the specified protocol
number.
Any given proto entry has the following information assoicated with it:
NameAliasesNumberAdditionally, the programmer can set any other associated key, but this information will only be available to the 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::TieServ manpage, the CfgTie::TieShadow manpage, the CfgTie::TieUser manpage
The current version does cache some proto information.
Randall Maas (randym@acm.org)
|
CfgTie::TieProto_num -- Ties the protocol number file to a PERL hash |