Returning the SID in Upnp_Event_Subscribe.
Currently, Upnp_Event_Subscribe always contains an empty chain in the Sid parameter. This patch now saves the client Subscription ID in this parameter so Control Points can see and use the same SID in the Upnp_Event_Subscribe and in the Upnp_Event structures.
This commit is contained in:
parent
ed0ebe1588
commit
bda942b22a
@ -2,6 +2,15 @@
|
|||||||
Version 1.6.10
|
Version 1.6.10
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2010-11-23 Fabrice Fontaine <fabrice.fontaine(at)orange-ftgroup.com>
|
||||||
|
|
||||||
|
Returning the Sid in Upnp_Event_Subscribe.
|
||||||
|
|
||||||
|
Currently, Upnp_Event_Subscribe always contains an empty chain in the
|
||||||
|
Sid parameter. This patch now saves the client Subscription ID in this
|
||||||
|
parameter so Control Points can see and use the same SID in the
|
||||||
|
Upnp_Event_Subscribe and in the Upnp_Event structures.
|
||||||
|
|
||||||
2010-11-22 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net>
|
2010-11-22 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
|
|
||||||
Two fixes from Juergen Lock <nox(at)jelal.kn-bremen.de>:
|
Two fixes from Juergen Lock <nox(at)jelal.kn-bremen.de>:
|
||||||
|
@ -3322,7 +3322,6 @@ void UpnpThreadDistribution(struct UpnpNonblockParam *Param)
|
|||||||
UpnpString *Sid = UpnpString_new();
|
UpnpString *Sid = UpnpString_new();
|
||||||
UpnpString *Url = UpnpString_new();
|
UpnpString *Url = UpnpString_new();
|
||||||
UpnpString_set_String(Url, Param->Url);
|
UpnpString_set_String(Url, Param->Url);
|
||||||
UpnpString_set_String(Sid, (char *)Evt.Sid);
|
|
||||||
Evt.ErrCode = genaSubscribe(
|
Evt.ErrCode = genaSubscribe(
|
||||||
Param->Handle,
|
Param->Handle,
|
||||||
Url,
|
Url,
|
||||||
@ -3330,6 +3329,7 @@ void UpnpThreadDistribution(struct UpnpNonblockParam *Param)
|
|||||||
Sid);
|
Sid);
|
||||||
strcpy(Evt.PublisherUrl, Param->Url);
|
strcpy(Evt.PublisherUrl, Param->Url);
|
||||||
Evt.TimeOut = Param->TimeOut;
|
Evt.TimeOut = Param->TimeOut;
|
||||||
|
strcpy((char *)Evt.Sid, UpnpString_get_String(Sid));
|
||||||
Param->Fun(UPNP_EVENT_SUBSCRIBE_COMPLETE, &Evt, Param->Cookie);
|
Param->Fun(UPNP_EVENT_SUBSCRIBE_COMPLETE, &Evt, Param->Cookie);
|
||||||
UpnpString_delete(Sid);
|
UpnpString_delete(Sid);
|
||||||
UpnpString_delete(Url);
|
UpnpString_delete(Url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user