DeeServer

DeeServer — Creates a server object you can connect to.

Synopsis

#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);

Object Hierarchy

  GObject
   +----DeePeer
         +----DeeServer

Properties

  "bus-address"              gchar*                : Read / Write / Construct Only
  "same-user-only"           gboolean              : Read / Write / Construct Only

Description

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.

Details

DeeServer

typedef struct _DeeServer DeeServer;


DeeServerClass

typedef struct {
} DeeServerClass;


dee_server_get_client_address ()

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.

dee_server_new ()

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]

dee_server_new_for_address ()

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]

Property Details

The "bus-address" property

  "bus-address"              gchar*                : Read / Write / Construct Only

Bus address to use for the connection.

Default value: NULL


The "same-user-only" property

  "same-user-only"           gboolean              : Read / Write / Construct Only

Accept connections from current user only.

Default value: TRUE