![]() |
![]() |
![]() |
Dee Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <dee.h> DeeServer; DeeServerClass; const gchar * dee_server_get_client_address (DeeServer *server
); DeeServer * dee_server_new (const gchar *swarm_name
); DeeServer * dee_server_new_for_address (const gchar *swarm_name
,const gchar *bus_address
);
"bus-address" gchar* : Read / Write / Construct Only "same-user-only" gboolean : Read / Write / Construct Only
DeeServer allows you to create private connections (connections which are not routed via dbus-daemon). Note that, unlike DeePeer, DeeServer will always be swarm leader, and clients connected to it cannot overtake swarm leadership once the server connection is closed.
const gchar * dee_server_get_client_address (DeeServer *server
);
self
: A DeeServer.
Gets a D-Bus address string that can be used by clients to connect to server.
Returns : |
A D-Bus address string. Do not free. |
DeeServer * dee_server_new (const gchar *swarm_name
);
swarm_name
: Name of swarm to join.
Creates a new instance of DeeServer and tries to bind to "bus-address". The "swarm-leader" property will be set when the binding succeeds.
Returns : |
A newly constructed DeeServer. [transfer full] |
DeeServer * dee_server_new_for_address (const gchar *swarm_name
,const gchar *bus_address
);
swarm_name
: Name of swarm to join.
bus_address
: D-Bus address to use for the connection.
Creates a new instance of DeeServer and tries to bind to bus_address
.
The "swarm-leader" property will be set when the binding succeeds.
Returns : |
A newly constructed DeeServer. [transfer full] |
"bus-address"
property"bus-address" gchar* : Read / Write / Construct Only
Bus address to use for the connection.
Default value: NULL
"same-user-only"
property"same-user-only" gboolean : Read / Write / Construct Only
Accept connections from current user only.
Default value: TRUE