__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/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 Class::MethodMaker [ scalar => [ qw(name email salary) ]];
sub new {
my $class = shift;
my $self = {};
bless $self, $class;
return $self;
}
sub HelloWorld {
my $self = shift;
my $message = shift;
print "Do hello world\n";
print $message, "\n";
return ["Hello", " from example-service.pl"];
}
sub GetDict {
my $self = shift;
print "Do get dict\n";
return {"first" => "Hello Dict", "second" => " from example-service.pl"};
}
sub GetTuple {
my $self = shift;
print "Do get tuple\n";
return ["Hello Tuple", " from example-service.pl"];
}
package SomeObject::DBus;
use base qw(Net::DBus::ProxyObject);
use Net::DBus::Exporter qw(org.designfu.SampleInterface);
dbus_property("name", "string");
dbus_property("email", "string", "read");
dbus_property("salary", "int32", "write");
sub new {
my $class = shift;
my $service = shift;
my $impl = shift;
my $self = $class->SUPER::new($service, "/SomeObject", $impl);
bless $self, $class;
return $self;
}
dbus_method("HelloWorld", ["string"], [["array", "string"]], { param_names => ["message"], return_names => ["reply"] });
dbus_method("GetDict", [], [["dict", "string", "string"]]);
dbus_method("GetTuple", [], [["struct", "string", "string"]]);
package main;
my $bus = Net::DBus->session();
my $object = SomeObject->new();
my $service = $bus->export_service("org.designfu.SampleService");
my $proxy = SomeObject::DBus->new($service, $object);
$object->email('[email protected]');
Net::DBus::Reactor->main->run();
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| dump-object-xml.pl | File | 393 B | 0644 |
|
| dump-object.pl | File | 419 B | 0644 |
|
| example-client-async.pl | File | 1.01 KB | 0644 |
|
| example-client-no-introspect.pl | File | 666 B | 0644 |
|
| example-client.pl | File | 894 B | 0644 |
|
| example-proxy-service.pl | File | 1.71 KB | 0644 |
|
| example-service-async.pl | File | 1.27 KB | 0644 |
|
| example-service-magic.pl | File | 1.54 KB | 0644 |
|
| example-service-no-introspect.pl | File | 1014 B | 0644 |
|
| example-service.pl | File | 1.5 KB | 0644 |
|
| example-signal-emitter.pl | File | 949 B | 0644 |
|
| example-signal-receiver.pl | File | 1.16 KB | 0644 |
|
| lshal.pl | File | 643 B | 0644 |
|
| notification.pl | File | 516 B | 0644 |
|
| strict-exports.pl | File | 1.29 KB | 0644 |
|