Context.full


Description:

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

Creates a GUPnP context with address addr on network interface iface.

If neither is specified, GUPnP will chose the address it deems most suitable.

Parameters:

iface

the name of a network interface

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.