1Net::DBus::Binding::BusU(s3e)r Contributed Perl DocumentaNteito:n:DBus::Binding::Bus(3)
2
3
4

NAME

6       Net::DBus::Binding::Bus - Handle to a well-known message bus instance
7

SYNOPSIS

9         use Net::DBus::Binding::Bus;
10
11         # Get a handle to the system bus
12         my $bus = Net::DBus::Binding::Bus->new(type => &Net::DBus::Binding::Bus::SYSTEM);
13

DESCRIPTION

15       This is a specialization of the Net::DBus::Binding::Connection module
16       providing convenience constructor for connecting to one of the well-
17       known bus types. There is no reason to use this module directly,
18       instead get a handle to the bus with the "session" or "system" methods
19       in Net::DBus.
20

METHODS

22       my $bus = Net::DBus::Binding::Bus->new(type => $type);
23       my $bus = Net::DBus::Binding::Bus->new(address => $addr);
24           Open a connection to a message bus, either a well known bus type
25           specified using the "type" parameter, or an arbitrary bus specified
26           using the "address" parameter. If the "private" parameter is set to
27           a true value, then a private connection to the bus is obtained.
28           The caller must explicitly disconnect this bus instance before
29           releasing the last instance of the object.
30
31       $bus->request_name($service_name)
32           Send a request to the bus registering the well known name specified
33           in the $service_name parameter. If another client already owns the
34           name, registration will be queued up, pending the exit of the other
35           client.
36
37       my $name = $bus->get_unique_name
38           Returns the unique name by which this processes' connection to the
39           bus is known. Unique names are never re-used for the entire
40           lifetime of the bus daemon.
41
42       $bus->add_match($rule)
43           Register a signal match rule with the bus controller, allowing
44           matching broadcast signals to routed to this client.
45
46       $bus->remove_match($rule)
47           Unregister a signal match rule with the bus controller, preventing
48           further broadcast signals being routed to this client
49

AUTHOR

51       Daniel P. Berrange
52
54       Copyright (C) 2004-2011 Daniel P. Berrange
55

SEE ALSO

57       Net::DBus::Binding::Connection, Net::DBus
58
59
60
61perl v5.30.0                      2019-07-26        Net::DBus::Binding::Bus(3)
Impressum