Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
x86_64-linux-gnu /
perl5 /
5.34 /
Net /
DBus /
[ HOME SHELL ]
Name
Size
Permission
Action
Binding
[ DIR ]
drwxr-xr-x
Test
[ DIR ]
drwxr-xr-x
Tutorial
[ DIR ]
drwxr-xr-x
Annotation.pm
3.22
KB
-rw-r--r--
ASyncReply.pm
4.21
KB
-rw-r--r--
BaseObject.pm
20.86
KB
-rw-r--r--
Callback.pm
3.55
KB
-rw-r--r--
Dumper.pm
6.06
KB
-rw-r--r--
Error.pm
3.67
KB
-rw-r--r--
Exporter.pm
17.24
KB
-rw-r--r--
Object.pm
6.47
KB
-rw-r--r--
ProxyObject.pm
7.07
KB
-rw-r--r--
Reactor.pm
18.54
KB
-rw-r--r--
RemoteObject.pm
14.97
KB
-rw-r--r--
RemoteService.pm
4.82
KB
-rw-r--r--
Service.pm
3.25
KB
-rw-r--r--
Tutorial.pod
1.91
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Annotation.pm
# -*- perl -*- # # Copyright (C) 2006-2011 Daniel P. Berrange # # This program is free software; You can redistribute it and/or modify # it under the same terms as Perl itself. Either: # # a) the GNU General Public License as published by the Free # Software Foundation; either version 2, or (at your option) any # later version, # # or # # b) the "Artistic License" # # The file "COPYING" distributed along with this file provides full # details of the terms and conditions of the two licenses. =pod =head1 NAME Net::DBus::Annotation - annotations for changing behaviour of APIs =head1 SYNOPSIS use Net::DBus::Annotation qw(:call); my $object = $service->get_object("/org/example/systemMonitor"); # Block until processes are listed my $processes = $object->list_processes("someuser"); # Just throw away list of processes, pretty pointless # in this example, but useful if the method doesn't have # a return value $object->list_processes(dbus_call_noreply, "someuser"); # List processes & get on with other work until # the list is returned. my $asyncreply = $object->list_processes(dbus_call_async, "someuser"); ... some time later... my $processes = $asyncreply->get_data; # List processes, with a shorter 10 second timeout, instead of # the default 60 seconds my $object->list_processes(dbus_call_timeout, 10 * 1000, "someuser"); =head1 DESCRIPTION This module provides a number of annotations which will be useful when dealing with the DBus APIs. There are annotations for switching remote calls between sync, async and no-reply mode. More annotations may be added over time. =head1 METHODS =over 4 =cut package Net::DBus::Annotation; use strict; use warnings; our $CALL_SYNC = "sync"; our $CALL_ASYNC = "async"; our $CALL_NOREPLY = "noreply"; our $CALL_TIMEOUT = "timeout"; bless \$CALL_SYNC, __PACKAGE__; bless \$CALL_ASYNC, __PACKAGE__; bless \$CALL_NOREPLY, __PACKAGE__; bless \$CALL_TIMEOUT, __PACKAGE__; require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw(dbus_call_sync dbus_call_async dbus_call_noreply dbus_call_timeout); our %EXPORT_TAGS = (call => [qw(dbus_call_sync dbus_call_async dbus_call_noreply dbus_call_timeout)]); =item dbus_call_sync Requests that a method call be performed synchronously, waiting for the reply or error return to be received before continuing. =cut sub dbus_call_sync() { return \$CALL_SYNC; } =item dbus_call_async Requests that a method call be performed a-synchronously, returning a pending call object, which will collect the reply when it eventually arrives. =cut sub dbus_call_async() { return \$CALL_ASYNC; } =item dbus_call_noreply Requests that a method call be performed a-synchronously, discarding any possible reply or error message. =cut sub dbus_call_noreply() { return \$CALL_NOREPLY; } =item dbus_call_timeout Indicates that the next parameter for the method call will specify the time to wait for a reply in milliseconds. If omitted, then the default timeout for the object will be used =cut sub dbus_call_timeout() { return \$CALL_TIMEOUT; } 1; =pod =back =head1 AUTHOR Daniel Berrange <dan@berrange.com> =head1 COPYRIGHT Copright (C) 2006-2011, Daniel Berrange. =head1 SEE ALSO L<Net::DBus>, L<Net::DBus::RemoteObject> =cut
Close