AnyEvent::Radius::Server - module to implement AnyEvent based RADIUS server
use AnyEvent; use AnyEvent::Radius::Server; sub radius_reply { # $h is hash-ref { request_id, type, av_list } my ($self, $h) = @_; ... return ($reply_type, $reply_av_list); } my $dict = AnyEvent::Radius::Server->load_dictionary('radius/dictionary'); my $server = AnyEvent::Radius::Server->new( ip => $ip, port => $port, read_timeout => 60, on_read => \&radius_reply, dictionary => $dict, secret => 'topsecret', ); AnyEvent->condvar->recv;
The AnyEvent::Radius::Server module allows to handle RADIUS requests in non-blocking way
Class method to load dictionary - returns the object to be passed to constructor
AnyEvent::Radius::Client
Sergey Leschenko <sergle.ua at gmail.com>
PortaOne Development Team <perl-radius at portaone.com> is the current module's maintainer at CPAN.
To install AnyEvent::Radius, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Radius
CPAN shell
perl -MCPAN -e shell install AnyEvent::Radius
For more information on module installation, please visit the detailed CPAN module installation guide.