1Net::DBus::Service(3) User Contributed Perl DocumentationNet::DBus::Service(3)
2
3
4

NAME

6       Net::DBus::Service - Provide a service to the bus for clients to use
7

SYNOPSIS

9         package main;
10
11         use Net::DBus;
12
13         # Attach to the bus
14         my $bus = Net::DBus->find;
15
16         # Acquire a service 'org.demo.Hello'
17         my $service = $bus->export_service("org.demo.Hello");
18
19         # Export our object within the service
20         my $object = Demo::HelloWorld->new($service);
21
22         ....rest of program...
23

DESCRIPTION

25       This module represents a service which is exported to the message bus.
26       Once a service has been exported, it is possible to create and export
27       objects to the bus.
28

METHODS

30       my $service = Net::DBus::Service->new($bus, $name);
31           Create a new service, attaching to the bus provided in the $bus
32           parameter, which should be an instance of the Net::DBus object. The
33           $name parameter is the qualified service name. It is not usually
34           necessary to use this constructor, since services can be created
35           via the "export_service" method on the Net::DBus object.
36
37       my $bus = $service->get_bus;
38           Retrieves the Net::DBus object to which this service is attached.
39
40       my $name = $service->get_service_name
41           Retrieves the qualified name by which this service is known on the
42           bus.
43

AUTHOR

45       Daniel P. Berrange
46
48       Copyright (C) 2005-2011 Daniel P. Berrange
49

SEE ALSO

51       Net::DBus, Net::DBus::Object, Net::DBus::RemoteService
52
53
54
55perl v5.28.1                      2015-03-16             Net::DBus::Service(3)
Impressum