GSSDPClient

GSSDPClient — SSDP "bus" wrapper.

Synopsis

struct              GSSDPClient;
GSSDPClient *       gssdp_client_new                    (GMainContext *main_context,
                                                         const char *iface,
                                                         GError **error);
GMainContext *      gssdp_client_get_main_context       (GSSDPClient *client);
void                gssdp_client_set_server_id          (GSSDPClient *client,
                                                         const char *server_id);
const char *        gssdp_client_get_server_id          (GSSDPClient *client);
const char *        gssdp_client_get_interface          (GSSDPClient *client);
const char *        gssdp_client_get_host_ip            (GSSDPClient *client);
void                gssdp_client_set_network            (GSSDPClient *client,
                                                         const char *network);
const char *        gssdp_client_get_network            (GSSDPClient *client);
gboolean            gssdp_client_get_active             (GSSDPClient *client);

Description

GSSDPClient wraps the SSDP "bus" as used by both GSSDPResourceBrowser and GSSDPResourceGroup.

Details

struct GSSDPClient

struct GSSDPClient {
        GObject parent;

        GSSDPClientPrivate *priv;
};


gssdp_client_new ()

GSSDPClient *       gssdp_client_new                    (GMainContext *main_context,
                                                         const char *iface,
                                                         GError **error);

main_context :

Deprecated: 0.11.2: Always set to NULL. If you want to specify a context use g_main_context_push_thread_default()

iface :

The name of the network interface, or NULL for auto-detection.

error :

Location to store error, or NULL

Returns :

A new GSSDPClient object.

gssdp_client_get_main_context ()

GMainContext *      gssdp_client_get_main_context       (GSSDPClient *client);


gssdp_client_set_server_id ()

void                gssdp_client_set_server_id          (GSSDPClient *client,
                                                         const char *server_id);

Sets the server ID of client to server_id.

client :

A GSSDPClient

server_id :

The server ID

gssdp_client_get_server_id ()

const char *        gssdp_client_get_server_id          (GSSDPClient *client);

client :

A GSSDPClient

Returns :

The server ID.

gssdp_client_get_interface ()

const char *        gssdp_client_get_interface          (GSSDPClient *client);

Get the name of the network interface associated to client.

client :

A GSSDPClient

Returns :

The network interface name. This string should not be freed.

gssdp_client_get_host_ip ()

const char *        gssdp_client_get_host_ip            (GSSDPClient *client);

Get the IP address we advertise ourselves as using.

client :

A GSSDPClient

Returns :

The IP address. This string should not be freed.

gssdp_client_set_network ()

void                gssdp_client_set_network            (GSSDPClient *client,
                                                         const char *network);

Sets the network identification of client to network.

client :

A GSSDPClient

network :

The string identifying the network

gssdp_client_get_network ()

const char *        gssdp_client_get_network            (GSSDPClient *client);

Get the network this client is associated with.

client :

A GSSDPClient

Returns :

The network identification. This string should not be freed.

gssdp_client_get_active ()

gboolean            gssdp_client_get_active             (GSSDPClient *client);

client :

A GSSDPClient

Returns :

TRUE if client is active, FALSE otherwise.