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           When $name is not specified or is "undef" then returned handle to
38           the service is identified only by the unique name of client's
39           connection to the bus.
40
41       my $bus = $service->get_bus;
42           Retrieves the Net::DBus object to which this service is attached.
43
44       my $name = $service->get_service_name
45           Retrieves the qualified name by which this service is known on the
46           bus.
47

AUTHOR

49       Daniel P. Berrange
50
52       Copyright (C) 2005-2011 Daniel P. Berrange
53

SEE ALSO

55       Net::DBus, Net::DBus::Object, Net::DBus::RemoteService
56
57
58
59perl v5.32.0                      2020-07-28             Net::DBus::Service(3)
Impressum