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: github.com/pangdudu/ruby-dbus/blob/master/README.rdoc
Constant Summary
Constants inherited from Connection
Connection::DBUSXMLINTRO, Connection::MSG_BUF_SIZE, 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, #connect, #connect_to_tcp, #connect_to_unix, #emit, #glibize, #introspect, #introspect_data, #messages, #on_return, #parse_session_string, #poll_messages, #pop_message, #process, #proxy, #request_service, #send, #send_sync, #service, #update_buffer, #wait_for_message
Constructor Details
#initialize(socket_name) ⇒ RemoteBus
Get the remote bus.
700 701 702 703 704 |
# File 'lib/dbus/bus.rb', line 700 def initialize socket_name super(socket_name) connect send_hello end |