Class: DBus::RemoteBus

Inherits:
Connection show all
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: github.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

#message_queue, #unique_name

Instance Method Summary collapse

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.



674
675
676
677
# File 'lib/dbus/bus.rb', line 674

def initialize(socket_name)
  super(socket_name)
  send_hello
end