Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
libnet-dbus-perl /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
dump-object-xml.pl
393
B
-rw-r--r--
2013-08-30 16:21
dump-object.pl
419
B
-rw-r--r--
2013-08-30 16:21
example-client-async.pl
1.01
KB
-rw-r--r--
2013-08-30 16:21
example-client-no-introspect.pl
666
B
-rw-r--r--
2013-08-30 16:21
example-client.pl
894
B
-rw-r--r--
2013-08-30 16:21
example-proxy-service.pl
1.71
KB
-rw-r--r--
2013-08-30 16:21
example-service-async.pl
1.27
KB
-rw-r--r--
2013-08-30 16:21
example-service-magic.pl
1.54
KB
-rw-r--r--
2013-08-30 16:21
example-service-no-introspect.pl
1014
B
-rw-r--r--
2013-08-30 16:21
example-service.pl
1.5
KB
-rw-r--r--
2013-08-30 16:21
example-signal-emitter.pl
949
B
-rw-r--r--
2013-08-30 16:21
example-signal-receiver.pl
1.16
KB
-rw-r--r--
2013-08-30 16:21
lshal.pl
643
B
-rw-r--r--
2013-08-30 16:21
notification.pl
516
B
-rw-r--r--
2013-08-30 16:21
strict-exports.pl
1.29
KB
-rw-r--r--
2013-08-30 16:21
Save
Rename
#!/usr/bin/perl use warnings; use strict; use Carp qw(confess cluck); use Net::DBus; use Net::DBus::Service; use Net::DBus::Reactor; #... continued at botom package SomeObject; use base qw(Net::DBus::Object); use Net::DBus::Exporter qw(org.designfu.SampleInterface); use Class::MethodMaker [ scalar => [ qw(name email salary) ]]; dbus_property("name", "string"); dbus_property("email", "string", "read"); dbus_property("salary", "int32", "write"); sub new { my $class = shift; my $service = shift; my $self = $class->SUPER::new($service, "/SomeObject"); bless $self, $class; return $self; } dbus_method("HelloWorld", ["string"], [["array", "string"]], { param_names => ["message"], return_names => ["reply"] }); sub HelloWorld { my $self = shift; my $message = shift; print "Do hello world\n"; print $message, "\n"; return ["Hello", " from example-service.pl"]; } dbus_method("GetDict", [], [["dict", "string", "string"]]); sub GetDict { my $self = shift; print "Do get dict\n"; return {"first" => "Hello Dict", "second" => " from example-service.pl"}; } dbus_method("GetTuple", [], [["struct", "string", "string"]]); sub GetTuple { my $self = shift; print "Do get tuple\n"; return ["Hello Tuple", " from example-service.pl"]; } package main; my $bus = Net::DBus->session(); my $service = $bus->export_service("org.designfu.SampleService"); my $object = SomeObject->new($service); $object->email('joe@example.com'); Net::DBus::Reactor->main->run();