Class: DBus::RemoteBus
- Inherits:
-
Connection
- Object
- Connection
- DBus::RemoteBus
- Defined in:
- lib/dbus/bus.rb
Overview
D-Bus remote (TCP) bus class
This class may be used when connecting to remote (listening on a TCP socket) busses. You can also use it to connect to other non-standard path busses.
The specified socket_name should look like this: (for TCP) tcp:host=127.0.0.1,port=2687 (for Unix-socket) unix:path=/tmp/my_funky_bus_socket
you’ll need to take care about authentification then, more info here: gitlab.com/pangdudu/ruby-dbus/-/blob/master/README.rdoc
Constant Summary
Constants inherited from Connection
Connection::DBUSXMLINTRO, Connection::NAME_FLAG_ALLOW_REPLACEMENT, Connection::NAME_FLAG_DO_NOT_QUEUE, Connection::NAME_FLAG_REPLACE_EXISTING, Connection::REQUEST_NAME_REPLY_ALREADY_OWNER, Connection::REQUEST_NAME_REPLY_EXISTS, Connection::REQUEST_NAME_REPLY_IN_QUEUE, Connection::REQUEST_NAME_REPLY_PRIMARY_OWNER
Instance Attribute Summary
Attributes inherited from Connection
Instance Method Summary collapse
-
#initialize(socket_name) ⇒ RemoteBus
constructor
Get the remote bus.
Methods inherited from Connection
#add_match, #dispatch_message_queue, #emit, #glibize, #introspect, #introspect_data, #on_return, #process, #proxy, #remove_match, #request_service, #send_sync, #send_sync_or_async, #service, #wait_for_message
Constructor Details
#initialize(socket_name) ⇒ RemoteBus
Get the remote bus.
721 722 723 724 |
# File 'lib/dbus/bus.rb', line 721 def initialize(socket_name) super(socket_name) send_hello end |