Client.for_address


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.6.0" ) ]
public Client.for_address (InetAddress? addr, uint16 port, UDAVersion uda_version) throws Error

Creates a GSSDP client with address addr.

If none is specified, GSSDP will chose the address it deems most suitable.

Parameters:

addr

an IP address or null for auto-detection. If you do not care about the address, but want to specify an address family, use [ctor@Glib.InetAddress.new_any] with the appropriate family instead.

port

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

uda_version

The UDA version this client will adhere to

Returns:

A new Client object or null on error.