Net::DBus::Service Methods: Difference between revisions
Jump to navigation
Jump to search
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…' |
(No difference)
|
Latest revision as of 03:02, 12 October 2009
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! | Alteeve Enterprise Support | Community Support | |
© 2025 Alteeve. Intelligent Availability® is a registered trademark of Alteeve's Niche! Inc. 1997-2025 | |||
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. |