Arduino DLNA Server
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tiny_dlna::NotifyReplyCP Class Reference

Represents a notification/notify reply scheduled for control-point processing. More...

#include <Schedule.h>

Inheritance diagram for tiny_dlna::NotifyReplyCP:
Inheritance graph
[legend]
Collaboration diagram for tiny_dlna::NotifyReplyCP:
Collaboration graph
[legend]

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
 

Detailed Description

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:

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.

Member Function Documentation

◆ name()

const char * tiny_dlna::NotifyReplyCP::name ( )
inlineoverridevirtual

Reimplemented from tiny_dlna::MSearchReplyCP.

◆ process()

bool tiny_dlna::NotifyReplyCP::process ( IUDPService udp)
inlineoverridevirtual

Reimplemented from tiny_dlna::MSearchReplyCP.

Member Data Documentation

◆ callback

std::function<bool(NotifyReplyCP &ref)> tiny_dlna::NotifyReplyCP::callback

◆ delivery_host_and_port

Str tiny_dlna::NotifyReplyCP::delivery_host_and_port

◆ delivery_path

Str tiny_dlna::NotifyReplyCP::delivery_path

◆ event_key

Str tiny_dlna::NotifyReplyCP::event_key

◆ nts

Str tiny_dlna::NotifyReplyCP::nts {80}

◆ subscription_id

Str tiny_dlna::NotifyReplyCP::subscription_id

◆ xml

Str tiny_dlna::NotifyReplyCP::xml

The documentation for this class was generated from the following file: