Net::DBus::Service Methods

From Alteeve Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

 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.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
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.