ResourceBrowser
Object Hierarchy:
Description:
[
CCode ( type_id =
"gssdp_resource_browser_get_type ()" ) ]
public class ResourceBrowser :
Object
Class handling resource discovery.
After creating a browser and activating it, the [signal@GSSDP.ResourceBrowser:GSSDPResourceBrowser:resource-available] and [
signal@GSSDP.ResourceBrowser:GSSDPResourceBrowser:resource-unavailable] signals will be emitted whenever the availability of
a resource matching the specified discovery target changes. A discovery request is sent out automatically when activating the browser.
If the associated [class@GSSDP.Client] was configured to support UDA 1.1, it will also emit the [signal@GSSDP.ResourceBrowser:
GSSDPResourceBrowser:resource-update] if any of the UDA 1.1 devices on the nework annouced its upcoming BOOTID change.
Content:
Properties:
- public bool active { get; set; }
Whether this browser is active or not.
- public Client client { get; construct; }
The [class@GSSDP.
- public uint mx { get; set; }
The maximum number of seconds in which to request other parties to
respond.
- public string target { get; set; }
The discovery target this resource browser is looking for.
Creation methods:
Methods:
- public bool get_active ()
Get whether the browser is currently active.
- public unowned Client get_client ()
Get the GSSDPClient this resource browser is using for SSDP.
- public ushort get_mx ()
Get the current MX value.
- public unowned string get_target ()
Get the current browse target.
- public bool rescan ()
Begins discovery if this is active
and no discovery is performed.
- public void set_active (bool active)
(De)activates this.
- public void set_mx (ushort mx)
Sets the used MX value of this to
mx.
- public void set_target (string target)
Sets the browser target of this to
target.
Signals:
- public signal void resource_available (string usn, List<string> locations)
The resource_available signal is emitted
whenever a new resource has become available.
- public virtual signal void resource_unavailable (string usn)
The resource_unavailable signal is emitted
whenever a resource is not available any more.
- public virtual signal void resource_update (string usn, uint boot_id, uint next_boot_id)
The resource_update signal is emitted
whenever an UPnP 1.1 device is about to change it's BOOTID.
Inherited Members:
All known members inherited from class GLib.Object