Net::DBus::Service Methods

From Alteeve Wiki
Revision as of 03:02, 12 October 2009 by Digimer (talk | contribs) (Created page with '{{dbtut_header}} <source lang="perl"> my $bus=Net::DBus->find; my $name="org.tle-bu.demo"; </source> = new = Usage: <source lang="perl">my $service=Net::DBus::Service->new($bu…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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.
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.