Connection


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( deprecated = true , since = "0.7.1" ) ]
public Connection (DBusDaemon dbus, string? bus_name, string? object_path) throws Error

Warning: Connection is deprecated.

Note:

Use ensure_connection instead.

Parameters:

dbus

a D-Bus daemon; may not be null

bus_name

the well-known or unique name of the connection process; if well-known, this function will make a blocking call to the bus daemon to resolve the unique name. May be null if object_path is not, in which case a well-known name will be derived from object_path.

object_path

the object path of the connection process. May be null if bus_name is a well-known name, in which case the object path will be derived from bus_name.

Returns:

a new connection proxy, or null if unique-name resolution fails or on invalid arguments




2022 vala-language.org