19 bool incl_nl =
true) {
24 for (
int w = 0; w < 20 && client.available() == 0; w++) {
26 if (count++ > 5)
break;
29 if (client.available() == 0) {
36 bool is_buffer_owerflow =
false;
39 int c = client.read();
47 is_buffer_owerflow =
true;
56 if (str[j - 1] ==
'\r') {
69 if (!is_buffer_owerflow) {
76 if (is_buffer_owerflow) {
We read a single line. A terminating 0 is added to the string to make it compliant for c string funct...
Definition: HttpLineReader.h:13
HttpLineReader()
Definition: HttpLineReader.h:15
virtual int readlnInternal(Stream &client, uint8_t *str, int len, bool incl_nl=true)
Definition: HttpLineReader.h:18
void log(DlnaLogLevel current_level, const char *fmt...)
Print log message.
Definition: Logger.h:40
Definition: Allocator.h:6
@ DlnaDebug
Definition: Logger.h:16
@ DlnaWarning
Definition: Logger.h:16
@ DlnaError
Definition: Logger.h:16
LoggerClass DlnaLogger
Definition: Logger.cpp:5