40 "parseMSearchReply parsed -> LOCATION='%s' USN='%s' ST='%s'",
56 parse(req.
data,
"<e:propertyset", result->
xml,
"</e:propertyset>");
61 bool parse(
Str& in,
const char* tag,
Str& result,
const char* end =
"\r\n") {
72 int end_pos = sin.
indexOf(end, start_pos);
73 start_pos += strlen(tag);
74 if (end_pos < 0) end_pos = in.
indexOf(
"\n", start_pos);
Translates DLNA UDP Requests to Schedule so that we can schedule a reply.
Definition: DLNAControlPointRequestParser.h:15
MSearchReplyCP * parseMSearchReply(RequestData &req)
Definition: DLNAControlPointRequestParser.h:32
Schedule * parse(RequestData &req)
Definition: DLNAControlPointRequestParser.h:17
NotifyReplyCP * parseNotifyReply(RequestData &req)
Definition: DLNAControlPointRequestParser.h:46
bool parse(Str &in, const char *tag, Str &result, const char *end="\r\n")
Definition: DLNAControlPointRequestParser.h:61
Processing at control point to handle a MSearchReply from the device.
Definition: Schedule.h:148
Str usn
Definition: Schedule.h:152
Str location
Definition: Schedule.h:151
Str search_target
Definition: Schedule.h:153
Represents a notification/notify reply scheduled for control-point processing.
Definition: Schedule.h:189
Str delivery_host_and_port
Definition: Schedule.h:193
Str xml
Definition: Schedule.h:197
Str event_key
Definition: Schedule.h:196
Str subscription_id
Definition: Schedule.h:195
Str delivery_path
Definition: Schedule.h:194
Str nts
Definition: Schedule.h:192
Heap-backed string utility used throughout tiny_dlna.
Definition: Str.h:27
void toLowerCase()
Lowercase in-place.
Definition: Str.h:312
void clearAll()
Clear contents (legacy alias)
Definition: Str.h:159
bool startsWith(const char *prefix) const
True if starts with prefix (case-sensitive)
Definition: Str.h:206
void trim()
Trim spaces on both ends.
Definition: Str.h:235
void substrView(StrView &from, int start, int end)
Assign substring view from StrView [start,end)
Definition: Str.h:69
int indexOf(const char *substr, int start=0) const
Index of substring from position (or -1)
Definition: Str.h:214
const char * c_str() const
C-string pointer to internal buffer.
Definition: Str.h:88
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
Str data
Definition: IUDPService.h:23
An individual Schedule (to send out UDP messages)
Definition: Schedule.h:18