Client
Object Hierarchy:
Description:
Namespace: GSSDP
Package: gssdp-1.0
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
All known members inherited from interface GLib.Initable