Constructor
GUPnPContextnew_for_address
Declaration [src]
GUPnPContext*
gupnp_context_new_for_address (
GInetAddress* addr,
guint16 port,
GSSDPUDAVersion uda_version,
GError** error
)
Description [src]
Creates a GUPnP context with address addr
. If none is specified, GUPnP
will chose the address it deems most suitable.
Available since: | 1.6. |
Parameters
addr |
GInetAddress |
An IP address or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
port |
guint16 |
The network port to use for M-SEARCH requests or 0 for random. |
|
uda_version |
GSSDPUDAVersion |
The UDA version this client will adhere to. |
|
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | GUPnPContext |
A new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL . |