Skip to content

Latest commit

 

History

History
91 lines (54 loc) · 2.72 KB

dbus_bus_connection.md

File metadata and controls

91 lines (54 loc) · 2.72 KB

Module dbus_bus_connection

Implements the connection to a D-Bus bus.

Copyright (c) 2014 Jean Parpaillon

Behaviours: dbus_connection.

Authors: Jean Parpaillon (jean.parpaillon@free.fr).

Description

Actually, the following addresses classes are supported:

  • unix
  • tcp

Other classes are ignored, in particular kernel.

Function Index

call/2Send a message to the bus connection, synchronously.
cast/2Send a message to the bus connection, asynchronously.
close/1Stop the bus proxy.
connect/1Start a proxy to a bus.
get_bus_id/1Retrieve a bus_id from well-known names.

Function Details

call/2


call(Bus::{'?MODULE', dbus_connection()} | dbus_connection(), Msg::dbus_message()) -> {ok, term()} | {error, term()}

Send a message to the bus connection, synchronously.

cast/2


cast(Bus::{'?MODULE', dbus_connection()} | dbus_connection(), Msg::dbus_message()) -> ok | {error, term()}

Send a message to the bus connection, asynchronously.

close/1


close(Bus::{'?MODULE', dbus_connection()} | dbus_connection()) -> ok

Stop the bus proxy

connect/1


connect(Bus_id::bus_id() | dbus_known_bus()) -> {ok, dbus_connection()} | {error, term()}

Start a proxy to a bus.

get_bus_id/1


get_bus_id(X1::dbus_known_bus()) -> bus_id() | {unsupported, [bus_id()]}

Retrieve a bus_id from well-known names