|
Arduino DLNA Server
|
Represents a notification/notify reply scheduled for control-point processing. More...
#include <Schedule.h>


Public Member Functions | |
| const char * | name () override |
| bool | process (IUDPService &udp) override |
| const char * | name () override |
| bool | process (IUDPService &udp) override |
Public Member Functions inherited from tiny_dlna::Schedule | |
| virtual bool | process (IUDPService &udp) |
| virtual const char * | name () |
| operator bool () | |
Public Attributes | |
| Str | nts {80} |
| Str | delivery_host_and_port |
| Str | delivery_path |
| Str | subscription_id |
| Str | event_key |
| Str | xml |
| std::function< bool(NotifyReplyCP &ref)> | callback |
Public Attributes inherited from tiny_dlna::MSearchReplyCP | |
| Str | location |
| Str | usn |
| Str | search_target |
Public Attributes inherited from tiny_dlna::Schedule | |
| uint64_t | time = 0 |
| uint32_t | repeat_ms = 0 |
| uint64_t | end_time = 0 |
| bool | active = false |
Represents a notification/notify reply scheduled for control-point processing.
Instances are created when the control-point receives SSDP/HTTP notify messages (for example via an attached HTTP server or UDP listener). The object carries parsed headers and the event payload and provides a callback that the control-point can invoke to let an application consumer handle the notification.
Fields of interest:
nts : the NTS header value (e.g. "ssdp:alive" or "ssdp:byebye").delivery_host_and_port : host:port that delivered the notification.delivery_path : path portion of the delivery URL (if available).subscription_id : SID header (subscription identifier) for eventing.event_key : optional event sequence key.xml : raw event XML body (for property change parsing).callback : application-provided handler with signature bool callback(NotifyReplyCP &ref). The handler should return true if it handled the notification, false if it did not.The process() implementation calls callback and logs whether the notification was handled. This struct inherits from MSearchReplyCP so it can be scheduled and executed by the control-point scheduler.
|
inlineoverridevirtual |
Reimplemented from tiny_dlna::MSearchReplyCP.
|
inlineoverridevirtual |
Reimplemented from tiny_dlna::MSearchReplyCP.
| std::function<bool(NotifyReplyCP &ref)> tiny_dlna::NotifyReplyCP::callback |
| Str tiny_dlna::NotifyReplyCP::delivery_host_and_port |
| Str tiny_dlna::NotifyReplyCP::delivery_path |
| Str tiny_dlna::NotifyReplyCP::event_key |
| Str tiny_dlna::NotifyReplyCP::nts {80} |
| Str tiny_dlna::NotifyReplyCP::subscription_id |
| Str tiny_dlna::NotifyReplyCP::xml |