1Net::DBus::RemoteServicUes(e3r)Contributed Perl DocumentNaetti:o:nDBus::RemoteService(3)
2
3
4

NAME

6       Net::DBus::RemoteService - Access services provided on the bus
7

SYNOPSIS

9         my $bus = Net::DBus->find;
10         my $service = $bus->get_service("org.freedesktop.DBus");
11
12         my $object = $service->get_object("/org/freedesktop/DBus");
13         foreach (@{$object->ListNames}) {
14           print "$_\n";
15         }
16

DESCRIPTION

18       This object provides a handle to a remote service on the bus. From this
19       handle it is possible to access objects associated with the service. If
20       a service is not running, an attempt will be made to activate it the
21       first time a method is called against one of its objects.
22

METHODS

24       my $service = Net::DBus::RemoteService->new($bus, $owner, $ser‐
25       vice_name);
26           Creates a new handle for a remote service. The $bus parameter is an
27           instance of Net::DBus, $owner is the name of the client providing
28           the service, while $service_name is the well known name of the
29           service on the bus. Service names consist of two or more tokens,
30           separated by periods, while the tokens comprise the letters a-z,
31           A-Z, 0-9 and _, for example "org.freedesktop.DBus". There is gener‐
32           ally no need to call this constructor, instead the "get_service"
33           method on Net::DBus should be used. This caches handles to remote
34           services, eliminating repeated retrieval of introspection data.
35
36       my $bus = $service->get_bus;
37           Retrieves a handle for the bus to which this service is attached.
38           The returned object will be an instance of Net::DBus.
39
40       my $service_name = $service->get_service_name
41           Retrieves the name of the remote service as known to the bus.
42
43       my $owner_name = $service->get_owner_name;
44           Retrieves the name of the client owning the service at the time it
45           was connected to.
46
47       my $object = $service->get_object($object_path[, $interface]);
48           Retrieves a handle to the remote object provided by the service
49           with the name of $object_path. If the optional $interface parameter
50           is provided, the object will immediately be cast to the designated
51           interface. NB, it is only neccessary to cast an object to a spe‐
52           cific interface if there are multiple interfaces on the object pro‐
53           viding methods with the same name, or the remote object does sup‐
54           port introspection. The returned object will be an instance of
55           Net::DBus::RemoteObject.
56

AUTHOR

58       Daniel Berrange <dan@berrange.com>
59
61       Copright (C) 2004-2005, Daniel Berrange.
62

SEE ALSO

64       Net::DBus::RemoteObject, Net::DBus::Service, Net::DBus
65
66
67
68perl v5.8.8                       2008-02-20       Net::DBus::RemoteService(3)
Impressum