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

ContentDirectory SCPD descriptor for MediaServer. More...

#include <DLNAMediaServerDescr.h>

Inheritance diagram for tiny_dlna::DLNAMediaServerContentDirectoryDescr:
Inheritance graph
[legend]

Public Member Functions

size_t printDescr (Print &out) override
 Emit ContentDirectory SCPD XML.
 

Detailed Description

ContentDirectory SCPD descriptor for MediaServer.

DLNAMediaServerContentDirectoryDescr generates the ContentDirectory service SCPD XML. Use printDescr(Print& out) to write the XML to any Print-backed output. The method returns the number of bytes written, enabling callers to measure output size for streaming HTTP responses.

The class does not store runtime state and is safe to create per-call.

Member Function Documentation

◆ printDescr()

size_t tiny_dlna::DLNAMediaServerContentDirectoryDescr::printDescr ( Print &  out)
inlineoverridevirtual

Emit ContentDirectory SCPD XML.

Parameters
outPrint target to write XML to
Returns
number of bytes written

The returned byte count can be used to compute a Content-Length header before streaming the response.

Implements tiny_dlna::DLNADescr.


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