|
NAMENet::Radius::Server::Set - Base class for set methodsSYNOPSISpackage My::Radius::Set; use base 'Net::Radius::Server::Set'; __PACKAGE__->mk_accessors(qw/foo bar baz/); sub set_foo { ... } sub set_bar { ... } sub set_baz { ... } # Meanwhile, in a configuration file nearby... my $set = My::Radius::Set->new({ foo => 'x', bar => 'y' }); my $set_sub = $set->mk; ... # Alternatively, in a more compact notation... my $set_sub = My::Radius::Set->mk({ foo => 'x', bar => 'y' }); DESCRIPTION"Net::Radius::Server::Set" is a base class for developing "set" methods to be used in "Net::Radius::Server" rules."Net::Radius::Server::Set"'s "new()" will honor a property called "result", that will be used as the return value of the method. Otherwise, "NRS_SET_CONTINUE" will be returned. Note that you can define the "set_result" hook, causing the result of the request to be calculated at packet processing time.
Methods to Provide in Derived ClassesAs shown in the example in the SYNOPSIS, your derived class must provide a "match_*" method for each attribute you define.The method must return any of the "NRS_MATCH_*" constants to indicate its result. EXPORTNone by default.HISTORY$Log$ Revision 1.4 2006/12/14 16:33:17 lem Rules and methods will only report failures in log level 3 and above. Level 4 report success and failure, for deeper debugging Revision 1.3 2006/12/14 15:52:25 lem Fix CVS tags SEE ALSOPerl(1), Class::Accessor(3), Net::Radius::Server(3).AUTHORLuis E. Muñoz, <luismunoz@cpan.org>COPYRIGHT AND LICENSECopyright (C) 2006 by Luis E. MuñozThis library is free software; you can redistribute it and/or modify it under the same terms as Perl 5.8.6 itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |