Net::DBus::Service Methods

From AN!Wiki
Jump to: navigation, search

 AN!Tools :: Net::DBus Binding Tutorial :: Net::DBus::Service Methods

my $bus=Net::DBus->find;
my $name="org.tle-bu.demo";

new

Usage:

my $service=Net::DBus::Service->new($bus, $name);

This creates a service called '$name' on the message '$bus'.

Note: This is not normally needed, as the service is created automatically by 'export_service'.

get_bus

Usage:

my $bus=$service->get_bus;

This returns the name of the message bus that the given '$service' is attached to.

get_name

Usage:

my $name=$service->get_name;

This returns the name of the service associated with the '$service' object.

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Us: Alteeve's Niche! Support: Mailing List IRC: #clusterlabs on Freenode   © Alteeve's Niche! Inc. 1997-2019
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.
Personal tools
Namespaces

Variants
Actions
Navigation
projects
Toolbox