Lines Matching defs:len

505 		unsigned char *buf, int len)
510 if (!len)
513 if (len < LWS_H2_SETTINGS_LEN)
516 while (len >= LWS_H2_SETTINGS_LEN) {
601 len -= LWS_H2_SETTINGS_LEN;
605 if (len)
664 unsigned int sid, unsigned int len, unsigned char *buf)
671 // lwsl_hexdump_level(LLL_NOTICE, buf, len);
673 *p++ = (uint8_t)(len >> 16);
674 *p++ = (uint8_t)(len >> 8);
675 *p++ = (uint8_t)len;
683 lwsl_debug("%s: %s (eff %s). typ %d, fl 0x%x, sid=%d, len=%d, "
686 sid, len, (int)wsi->txc.tx_cr, (int)nwsi->txc.tx_cr);
689 if (wsi->txc.tx_cr < (int)len)
691 lwsl_info("%s: %s: sending payload len %d"
693 lws_wsi_tag(wsi), len, (int)wsi->txc.tx_cr);
694 lws_h2_tx_cr_consume(wsi, (int)len);
698 len + LWS_H2_FRAME_HEADER_LENGTH);
996 lwsl_debug("%s (%s): fr hdr: typ 0x%x, fla 0x%x, sid 0x%x, len 0x%x\n",
1004 lwsl_info("%s: ignoring unknown frame type %d (len %d)\n", __func__, h2n->type, (unsigned int)h2n->length);
1107 lwsl_info("Frame header DATA: sid %u, flags 0x%x, len %u\n",
1397 lwsl_debug("%s: going on to deal with unknown frame remaining len %d\n", __func__, (unsigned int)h2n->length);
1626 lwsl_info("hpack incomplete %d (type %d, len %u)\n",
1680 int n = 0, len;
1691 len = lws_hdr_total_length(h2n->swsi, (enum lws_token_indexes)n);
1692 if (!len || len > (int)sizeof(buf) - 1) {
2231 lwsl_debug("---- restricting len to %d "
2302 * content len exhausted somehow.
2811 lws_read_h2(struct lws *wsi, unsigned char *buf, lws_filepos_t len)
2815 // lwsl_notice("%s: h2 path: wsistate 0x%x len %d\n", __func__,
2816 // wsi->wsistate, (int)len);
2828 while (len) {
2836 lws_rxflow_cache(wsi, buf, 0, (size_t)len);
2837 buf += len;
2863 m = lws_h2_parser(wsi, buf, len, &body_chunk_len);
2878 len -= body_chunk_len;