Lines Matching defs:nwsi
156 struct lws *nwsi = lws_get_network_wsi(wsi);
188 nwsi->txc.peer_tx_cr_est += bump;
190 lws_wsi_txc_describe(&nwsi->txc, __func__, nwsi->mux.my_sid);
192 lws_pps_schedule(nwsi, pps);
219 struct lws *nwsi = lws_get_network_wsi(parent_wsi);
220 struct lws_h2_netconn *h2n = nwsi->h2.h2n;
240 lws_h2_goaway(nwsi, H2_ERR_PROTOCOL_ERROR, "Bad sid");
284 wsi->txc.tx_cr = (int32_t)nwsi->h2.h2n->peer_set.s[H2SET_INITIAL_WINDOW_SIZE];
286 (int32_t)nwsi->h2.h2n->our_set.s[H2SET_INITIAL_WINDOW_SIZE];
307 lws_wsi_txc_describe(&nwsi->txc, __func__, 0);
328 struct lws *nwsi = lws_get_network_wsi(parent_wsi);
348 wsi->mux.my_sid = nwsi->h2.h2n->highest_sid;
349 nwsi->h2.h2n->highest_sid += 2;
354 lws_wsi_tag(wsi), (int)wsi->mux.my_sid, (int)nwsi->h2.h2n->highest_sid);
358 wsi->txc.tx_cr = (int32_t)nwsi->h2.h2n->peer_set.s[H2SET_INITIAL_WINDOW_SIZE];
360 nwsi->h2.h2n->our_set.s[H2SET_INITIAL_WINDOW_SIZE];
431 struct lws *nwsi = lws_get_network_wsi(wsi);
432 struct lws_h2_netconn *h2n = nwsi->h2.h2n;
475 struct lws *nwsi = lws_get_network_wsi(wsi);
476 struct lws_h2_netconn *h2n = nwsi->h2.h2n;
507 struct lws *nwsi = lws_get_network_wsi(wsi);
527 lws_h2_goaway(nwsi, H2_ERR_PROTOCOL_ERROR,
536 lws_h2_goaway(nwsi, H2_ERR_FLOW_CONTROL_ERROR,
568 nwsi->mux.child_list) {
585 lws_h2_goaway(nwsi, H2_ERR_PROTOCOL_ERROR,
590 lws_h2_goaway(nwsi, H2_ERR_PROTOCOL_ERROR,
635 struct lws *nwsi = lws_get_network_wsi(wsi);
637 if (!wsi->mux_substream && !nwsi->upgraded_to_http2)
640 lwsl_info ("%s: %s: own tx credit %d: nwsi credit %d\n",
641 __func__, lws_wsi_tag(wsi), c, (int)nwsi->txc.tx_cr);
643 if (nwsi->txc.tx_cr < c)
644 c = nwsi->txc.tx_cr;
655 struct lws *nwsi = lws_get_network_wsi(wsi);
659 if (nwsi != wsi)
660 nwsi->txc.tx_cr -= consumed;
666 struct lws *nwsi = lws_get_network_wsi(wsi);
684 "txcr=%d, nwsi->txcr=%d\n", __func__, lws_wsi_tag(wsi),
685 lws_wsi_tag(nwsi), type, flags,
686 sid, len, (int)wsi->txc.tx_cr, (int)nwsi->txc.tx_cr);
697 n = lws_issue_raw(nwsi, &buf[-LWS_H2_FRAME_HEADER_LENGTH],
1267 lwsl_info("HEADERS: nwsi %s: sid %u mapped "
1560 lwsl_info("%s: MIGRATING nwsi %s -> swsi %s\n", __func__,
1575 "write on nwsi %s: %d\n", __func__,
2347 /* update both the stream and nwsi */
2356 * repair the nwsi credit but allow the
2519 struct lws *nwsi = lws_get_network_wsi(wsi);
2530 unsigned int sid = nwsi->h2.h2n->highest_sid_opened + 2;
2542 wsi->mux.my_sid = nwsi->h2.h2n->highest_sid_opened = sid;
2789 * mode / state of the nwsi will get the h2 processing done.
2823 * If it's ws over h2, the nwsi will get us here to do the h2