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

ConnectionManager SCPD descriptor for MediaServer. More...

#include <DLNAMediaServerDescr.h>

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

Public Member Functions

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

Detailed Description

ConnectionManager SCPD descriptor for MediaServer.

DLNAMediaServerConnectionMgrDescr generates the Service Control Protocol Description (SCPD) XML for the ConnectionManager service and writes it to any Arduino-style Print instance. The primary method is printDescr(Print& out) which emits XML and returns the number of bytes written. That return value can be used to compute HTTP Content-Length before streaming the body.

The class is stateless and intended to be constructed on-demand by request handlers.

Member Function Documentation

◆ printDescr()

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

Emit ConnectionManager SCPD XML.

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

Use the returned size to set Content-Length when streaming the response without creating a temporary buffer.

Implements tiny_dlna::DLNADescr.


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