Client.with_port


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( deprecated = true , deprecated_since = "1.6.0" ) ]
public Client.with_port (string? iface, uint16 msearch_port) throws Error

Warning: Client.with_port is deprecated since 1.6.0.

Creates a GSSDP client on iface.

Note:

Use [ctor@GSSDP.Client.new_for_address] instead.

GSSDPClient will pick the address it finds suitable for using.

Using this utility function, the created client will be using UDA 1.0 and IPv4 only.

Parameters:

iface

The name of the network interface, or null for auto-detection.

msearch_port

The network port to use for M-SEARCH requests or 0 for random.

Returns:

A new Client object or null on error.