![]() |
![]() |
![]() |
GSSDP Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
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
);
"active" gboolean : Read / Write "error" gpointer : Write / Construct Only "host-ip" gchar* : Read "interface" gchar* : Read / Write / Construct Only "main-context" gpointer : Read / Write / Construct Only "network" gchar* : Read / Write / Construct "server-id" gchar* : Read / Write
GSSDPClient wraps the SSDP "bus" as used by both GSSDPResourceBrowser and GSSDPResourceGroup.
GSSDPClient * gssdp_client_new (GMainContext *main_context
,const char *iface
,GError **error
);
|
The GMainContext to associate with, or NULL |
|
Location to store error, or NULL |
Returns : |
A new GSSDPClient object. |
GMainContext * gssdp_client_get_main_context (GSSDPClient *client
);
|
A GSSDPClient |
Returns : |
The GMainContext client is associated with, or NULL. |
void gssdp_client_set_server_id (GSSDPClient *client
,const char *server_id
);
Sets the server ID of client
to server_id
.
|
A GSSDPClient |
|
The server ID |
const char * gssdp_client_get_server_id (GSSDPClient *client
);
|
A GSSDPClient |
Returns : |
The server ID. |
const char * gssdp_client_get_interface (GSSDPClient *client
);
Get the name of the network interface associated to client
.
|
A GSSDPClient |
Returns : |
The network interface name. This string should not be freed. |
const char * gssdp_client_get_host_ip (GSSDPClient *client
);
Get the IP address we advertise ourselves as using.
|
A GSSDPClient |
Returns : |
The IP address. This string should not be freed. |
void gssdp_client_set_network (GSSDPClient *client
,const char *network
);
Sets the network identification of client
to network
.
|
A GSSDPClient |
|
The string identifying the network |
const char * gssdp_client_get_network (GSSDPClient *client
);
Get the network this client is associated with.
|
A GSSDPClient |
Returns : |
The network identification. This string should not be freed. |
gboolean gssdp_client_get_active (GSSDPClient *client
);
|
A GSSDPClient |
Returns : |
TRUE if client is active, FALSE otherwise. |
"active"
property"active" gboolean : Read / Write
Whether this client is active or not (passive). When active (default), the client sends messages on the network, otherwise not. In most cases, you don't want to touch this property.
Default value: TRUE
"error"
property"error" gpointer : Write / Construct Only
Internal property.
Stability Level: Private
"host-ip"
property"host-ip" gchar* : Read
The IP address of the assoicated network interface.
Default value: NULL
"interface"
property"interface" gchar* : Read / Write / Construct Only
The name of the network interface this client is associated with. Set to NULL to autodetect.
Default value: NULL
"main-context"
property"main-context" gpointer : Read / Write / Construct Only
The GMainContext to use. Set to NULL to use the default.
"network"
property"network" gchar* : Read / Write / Construct
The network this client is currently connected to. You could set this to anything you want to identify the network this client is associated with. If you are using GUPnPContextManager and associated interface is a WiFi interface, this property is set to the ESSID of the network. Otherwise, expect this to be the network IP address by default.
Default value: NULL
"server-id"
property"server-id" gchar* : Read / Write
The SSDP server's identifier.
Default value: NULL