API-MikroTik
    
    
  
  
  
view release on metacpan or search on metacpan
lib/API/MikroTik.pm view on Meta::CPAN
has timeout  => 10;
has tls      => 1;
has user     => 'admin';
has _tag     => 0;
# Aliases
Mojo::Util::monkey_patch(__PACKAGE__, 'cmd',   \&command);
Mojo::Util::monkey_patch(__PACKAGE__, 'cmd_p', \&command_p);
Mojo::Util::monkey_patch(__PACKAGE__, '_fail', \&_finish);
sub DESTROY { Mojo::Util::_global_destruction() or shift->_cleanup() }
sub cancel {
    my $cb = ref $_[-1] eq 'CODE' ? pop : sub { };
    return shift->_command(Mojo::IOLoop->singleton, '/cancel', {'tag' => shift},
        undef, $cb);
}
sub command {
    my $cb = ref $_[-1] eq 'CODE' ? pop : undef;
    my ($self, $cmd, $attr, $query) = @_;
( run in 0.365 second using v1.01-cache-2.11-cpan-5dc5da66d9d )