GUPnP.Context.new_full
Description: Reference for GUPnP.Context.new_full

### Constructor

# GUPnP Contextnew_full

since: 1.6.

#### Declaration [src]

    GUPnPContext*
    gupnp_context_new_full (
      const char* iface,
      GInetAddress* addr,
      guint16 port,
      GSSDPUDAVersion uda_version,
      GError** error
    )

#### Description [src]

Creates a GUPnP context with address `addr` on network interface `iface`. If neither is specified, GUPnP will chose the address it deems most suitable.

Available since: 1.6.

#### Parameters

`iface`

  Type: `const char*`

  The name of a network interface.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`addr`

  Type: `GInetAddress`

  An IP address or `NULL` for auto-detection. If you do not care about the address, but want to specify an address family, use Glib.InetAddress.new_any with the appropriate family instead.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

`port`

  Type: `guint16`

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

`uda_version`

  Type: `GSSDPUDAVersion`

  The UDA version this client will adhere to.

`error`

  Type: `GError **`

  The return location for a recoverable error.

  The argument can be `NULL`.
  If the return location is not `NULL`, then you must initialize it to a `NULL` `GError*`.
  The argument will left initialized to `NULL` by the constructor if there are no errors.
  In case of error, the argument will be set to a newly allocated `GError`; the caller will take ownership of the data, and be responsible for freeing it.

#### Return value

Type: `GUPnPContext`

A new `GSSDPClient` object or `NULL` on error.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be `NULL`.