AnyEvent-Radius
view release on metacpan or search on metacpan
lib/AnyEvent/Radius/Client.pm view on Meta::CPAN
# new 'NAS'
# args:
# ip
# port
# secret
# dictionary
# read_timeout
# write_timeout
# bind_ip
# initial_last_request_id - random by default
#- callbacks:
# on_read
# on_read_raw
# on_read_timeout
# on_write_timeout
# on_error
sub new {
my ($class, %h) = @_;
my $obj = bless {}, $class;
lib/AnyEvent/Radius/Server.pm view on Meta::CPAN
&DISCONNECT_REQUEST => DISCONNECT_REJECT,
&COA_REQUEST => COA_REJECT,
);
# new 'server'
# args:
# ip
# port
# secret
# dictionary
#- callbacks:
# on_read
# on_read_raw
# on_wrong_request
# on_error
sub new {
my ($class, %h) = @_;
die "No IP argument" if (! $h{ip});
# either pre-created packer obect, or need radius secret to create new one
# dictionary is optional
( run in 0.927 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )