Client
Object Hierarchy:
Description:
[ CCode ( type_id = "gssdp_client_get_type ()" ) ]
public class Client : Object, Initable
Content:
Properties:
- public string @interface { get; construct; }
The name of the network interface this client is associated with.
- public bool active { get; set; }
Whether this client is active or not (passive).
- public string host_ip { owned get; set construct; }
The IP address of the assoicated network interface.
- public uint msearch_port { get; construct; }
UDP port to use for sending multicast M-SEARCH requests on the
network.
- public string network { get; set construct; }
The network this client is currently connected to.
- public string server_id { get; set; }
The SSDP server's identifier.
- public uint socket_ttl { get; construct; }
Time-to-live value to use for all sockets created by this client.
Creation methods:
- public Client (MainContext? main_context, string? iface) throws Error
- public Client.with_port (string? iface, uint16 msearch_port) throws Error
Methods:
- public void add_cache_entry (string ip_address, string user_agent)
- public void append_header (string name, string value)
Adds a header field to the message sent by this
this.
- public void clear_headers ()
Removes all the headers for this this
.
- public bool get_active ()
- public unowned string get_host_ip ()
Get the IP address we advertise ourselves as using.
- public unowned string get_interface ()
Get the name of the network interface associated to
this.
- public MainContext get_main_context ()
- public unowned string get_network ()
Get the network this client is associated with.
- public unowned string get_server_id ()
- public unowned string guess_user_agent (string ip_address)
- public void remove_header (string name)
Removes name
from the list of headers .
- public void set_network (string network)
Sets the network identification of this
to network
.
- public void set_server_id (string server_id)
Sets the server ID of this to
server_id
.
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
All known members inherited from interface GLib.Initable