Re: [gupnp]



On Wed, 2010-11-24 at 11:42 +0200, Just Me wrote:

> I am trying to force GUPnP (both device and cp) to use a specific
> network interface.
> I noticed that such a feature is included since these releases:
>     http://zee-nix.blogspot.com/2009/09/gssdp-07-gupnp-013-gupnp-av-05-gupnp.html

That feature is included for much longer even. Just pass the name of the
network interface to gupnp_context_new().

> When searching for example code I found only these using
> ContextManager class, and all of
> these only set "port" arg to 0 ...
> -----------------------------------------------------
> ./gupnp-tools-0.8.1/src/universal-cp/main.c:        context_manager =
> gupnp_context_manager_new (NULL, 0);
> ./gupnp-tools-0.8.1/src/network-light/upnp.c:        context_manager =
> gupnp_context_manager_new (NULL, 0);
> ./gupnp-tools-0.8.1/src/av-cp/main.c:        context_manager =
> gupnp_context_manager_new (NULL, 0);
> ./gupnp-igd-0.1.7/libgupnp-igd/gupnp-simple-igd.c:
> gupnp_context_manager_new (self->priv->main_context, 0);
> -----------------------------------------------------
> ... which means:
>  * @port: Port to create contexts for, or 0 if you don't care what port is used.
> 
> Could someone please provide some advice how to use a specific port?
> A pointer to example code would be nice ...

Now you are confusing me. Do you want to use a specific port or do you
want to use a specific network interface? Anyway, you can specify both
when calling gupnp_context_new().


Sven


--
To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]