Packages
gssdp-1.0
GSSDP
ResourceBrowser
active
client
mx
target
ResourceBrowser
get_active
get_client
get_mx
get_target
rescan
set_active
set_mx
set_target
resource_available
resource_unavailable
ResourceBrowser
Object Hierarchy:
Description:
[
CCode
( type_id =
"gssdp_resource_browser_get_type ()"
) ]
public
class
ResourceBrowser
:
Object
Namespace:
GSSDP
Package:
gssdp-1.0
Content:
Properties:
public
bool
active
{
get
;
set
; }
Whether this browser is active or not.
public
Client
client
{
get
;
construct
; }
The
Client
to use.
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.
Creation methods:
public
ResourceBrowser
(
Client
client,
string
target)
target
is a generic string the resource browser listens for on the SSDP bus.
Methods:
public
bool
get_active
()
public
unowned
Client
get_client
()
public
ushort
get_mx
()
public
unowned
string
get_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.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref