Lines Matching defs:header
157 coap_ws_log_header(const coap_session_t *session, const uint8_t *header) {
160 (void)header;
167 bytes_size = header[1] & WS_B1_LEN_MASK;
173 if (header[1] & WS_B1_MASK_BIT) {
177 snprintf(&buf[i*3], 4, " %02x", header[i]);
179 coap_log_debug("* %s: WS header:%s\n", coap_session_str(session), buf);
319 /* Process the individual header */
326 coap_log_debug("WS: Duplicate Host: header\n");
332 coap_log_debug("WS: Duplicate Upgrade: header\n");
336 coap_log_debug("WS: Invalid Upgrade: header\n");
342 coap_log_debug("WS: Duplicate Connection: header\n");
346 coap_log_debug("WS: Invalid Connection: header\n");
354 coap_log_debug("WS: Duplicate Sec-WebSocket-Key: header\n");
367 coap_log_debug("WS: Duplicate Sec-WebSocket-Protocol: header\n");
371 coap_log_debug("WS: Invalid Sec-WebSocket-Protocol: header\n");
377 coap_log_debug("WS: Duplicate Sec-WebSocket-Version: header\n");
381 coap_log_debug("WS: Invalid Sec-WebSocket-Version: header\n");
435 /* Process the individual header */
442 coap_log_debug("WS: Duplicate Upgrade: header\n");
446 coap_log_debug("WS: Invalid Upgrade: header\n");
452 coap_log_debug("WS: Duplicate Connection: header\n");
456 coap_log_debug("WS: Invalid Connection: header\n");
464 coap_log_debug("WS: Duplicate Sec-WebSocket-Accept: header\n");
476 coap_log_debug("WS: Duplicate Sec-WebSocket-Protocol: header\n");
480 coap_log_debug("WS: Invalid Sec-WebSocket-Protocol: header\n");
523 /* Whole header record in */
545 /* Found trailing empty header line */
550 coap_log_info("WS: Missing protocol header(s)\n");
556 coap_log_info("WS: Missing protocol header(s)\n");
643 /* Enough of the header in ? */
713 /* Handle any data read in as a part of the header */
717 /* data in latter part of header */
743 /* more information in header than given data size */
750 /* set up partial header for the next read */