62 result.
time = millis() + random(result.
mx * 1000);
82 return result.
active ? &result :
nullptr;
90 int end = in.
indexOf(
"\r\n", start);
91 if (end < 0) end = in.
indexOf(
"\n", start);
Device Attributes and generation of XML using urn:schemas-upnp-org:device-1-0. We could just return a...
Definition: DLNADeviceInfo.h:27
Translates DLNA UDP Requests to Schedule so that we can schedule a reply.
Definition: DLNADeviceRequestParser.h:15
DLNADeviceInfo * p_device
Definition: DLNADeviceRequestParser.h:45
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:85
Schedule * processMSearch(RequestData &req)
Definition: DLNADeviceRequestParser.h:47
Vector< const char * > mx_vector
Definition: DLNADeviceRequestParser.h:44
void log(DlnaLogLevel current_level, const char *fmt...)
Print log message.
Definition: Logger.h:40
Answer from device to MSearch request by sending a reply.
Definition: Schedule.h:78
Str search_target
Definition: Schedule.h:108
int mx
Definition: Schedule.h:111
A simple wrapper to provide string functions on char*. If the underlying char* is a const we do not a...
Definition: StrView.h:19
virtual void substrView(StrView &from, int start, int end)
copies a substring into the current string
Definition: StrView.h:493
virtual void clearAll()
Definition: StrView.h:559
virtual const char * c_str()
provides the string value as const char*
Definition: StrView.h:376
virtual int indexOf(const char c, int start=0)
Definition: StrView.h:275
int toInt()
Converts the string to an int.
Definition: StrView.h:596
virtual void trim()
remove leading and traling spaces
Definition: StrView.h:520
virtual bool equals(const char *str)
checks if the string equals indicated parameter string
Definition: StrView.h:178
virtual bool contains(const char *str)
checks if the string contains a substring
Definition: StrView.h:285
String implementation which keeps the data on the heap. We grow the allocated memory only if the copy...
Definition: Str.h:22
const char * c_str()
provides the string value as const char*
Definition: Str.h:187
Vector implementation which provides the most important methods as defined by std::vector....
Definition: Vector.h:21
void push_back(T &&value)
Definition: Vector.h:171
Definition: Allocator.h:6
LoggerClass DlnaLogger
Definition: Logger.cpp:5
Provides information of the received UDP which consists of the (xml) data and the peer address and po...
Definition: IUDPService.h:23
IPAddressAndPort peer
Definition: IUDPService.h:25
Str data
Definition: IUDPService.h:24
An individual Schedule (to send out UDP messages)
Definition: Schedule.h:17
bool active
Definition: Schedule.h:26
uint64_t time
Definition: Schedule.h:20