Manages event subscriptions and notification delivery.
More...
#include <SubscriptionMgr.h>
Manages event subscriptions and notification delivery.
The manager maintains per-service lists of Subscription entries. It provides methods to subscribe/unsubscribe clients and to publish state variable changes (which will be delivered as UPnP event NOTIFY requests to each subscriber's callback URL).
Notes:
- Subscriptions are tracked in simple parallel vectors (service names and lists) rather than a hash map for minimal embedded footprint.
subscribe() returns the assigned SID (generated when creating a new subscription). unsubscribe() removes a subscription by SID.
◆ SubscriptionMgr()
| tiny_dlna::SubscriptionMgr::SubscriptionMgr |
( |
| ) |
|
|
inline |
◆ getList()
◆ publishProperty()
| void tiny_dlna::SubscriptionMgr::publishProperty |
( |
const char * |
serviceId, |
|
|
const char * |
varName, |
|
|
const char * |
value |
|
) |
| |
|
inline |
◆ subscribe()
| Str tiny_dlna::SubscriptionMgr::subscribe |
( |
const char * |
serviceId, |
|
|
const char * |
callbackUrl, |
|
|
uint32_t |
timeoutSec = 1800 |
|
) |
| |
|
inline |
◆ unsubscribe()
| bool tiny_dlna::SubscriptionMgr::unsubscribe |
( |
const char * |
serviceId, |
|
|
const char * |
sid |
|
) |
| |
|
inline |
◆ service_lists
◆ service_names
| Vector<Str> tiny_dlna::SubscriptionMgr::service_names |
|
protected |
The documentation for this class was generated from the following file: