68 result.
time = millis() + random(result.
mx * 1000);
106 start += strlen(tag);
107 int end = in.
indexOf(
"\r\n", start);
108 if (end < 0) end = in.
indexOf(
"\n", start);
112 start, end, result.
c_str());
Device Attributes and generation of XML using urn:schemas-upnp-org:device-1-0. We could just return a...
Definition: DLNADeviceInfo.h:25
Translates DLNA UDP Requests to Schedule so that we can schedule a reply.
Definition: DLNADeviceRequestParser.h:15
DLNADeviceInfo * p_device
Definition: DLNADeviceRequestParser.h:48
Schedule * parse(DLNADeviceInfo &device, RequestData &req)
Definition: DLNADeviceRequestParser.h:20
void addMSearchST(const char *accept)
Definition: DLNADeviceRequestParser.h:18
bool parse(Str &in, const char *tag, StrView &result)
Definition: DLNADeviceRequestParser.h:102
Schedule * processMSearch(RequestData &req)
Definition: DLNADeviceRequestParser.h:50
Vector< const char * > mx_vector
Definition: DLNADeviceRequestParser.h:47
Answer from device to MSearch request by sending a reply.
Definition: Schedule.h:84
Str search_target
Definition: Schedule.h:135
bool isValid() override
Definition: Schedule.h:115
int mx
Definition: Schedule.h:137
A simple wrapper to provide string functions on char*. If the underlying char* is a const we do not a...
Definition: StrView.h:18
virtual void substrView(StrView &from, int start, int end)
copies a substring into the current string
Definition: StrView.h:505
virtual void clearAll()
Definition: StrView.h:571
virtual const char * c_str()
provides the string value as const char*
Definition: StrView.h:376
int toInt()
Converts the string to an int.
Definition: StrView.h:607
virtual void trim()
remove leading and traling spaces
Definition: StrView.h:532
Heap-backed string utility used throughout tiny_dlna.
Definition: Str.h:27
bool equals(const char *other) const
Exact string equality with C-string.
Definition: Str.h:167
int indexOf(const char *substr, int start=0) const
Index of substring from position (or -1)
Definition: Str.h:214
bool contains(const char *sub) const
True if substring occurs.
Definition: Str.h:171
const char * c_str() const
C-string pointer to internal buffer.
Definition: Str.h:88
Lightweight wrapper around std::vector with Arduino-friendly helpers and a pluggable allocator.
Definition: Vector.h:39
Definition: Allocator.h:13
Provides information of the received UDP which consists of the (xml) data and the peer address and po...
Definition: IUDPService.h:22
IPAddressAndPort peer
Definition: IUDPService.h:24
Str data
Definition: IUDPService.h:23
An individual Schedule (to send out UDP messages)
Definition: Schedule.h:18
bool active
Definition: Schedule.h:27
uint64_t time
Definition: Schedule.h:21