Lines Matching refs:pps

126 	struct lws_h2_protocol_send *pps = lws_malloc(sizeof(*pps), "pps");
128 if (pps)
129 pps->type = type;
131 return pps;
157 struct lws_h2_protocol_send *pps;
170 pps = lws_h2_new_pps(LWS_H2_PPS_UPDATE_WINDOW);
171 if (!pps)
174 pps->u.update_window.sid = (unsigned int)sid;
175 pps->u.update_window.credit = (unsigned int)bump;
180 lws_pps_schedule(wsi, pps);
182 pps = lws_h2_new_pps(LWS_H2_PPS_UPDATE_WINDOW);
183 if (!pps)
186 pps->u.update_window.sid = 0;
187 pps->u.update_window.credit = (unsigned int)bump;
192 lws_pps_schedule(nwsi, pps);
392 struct lws_h2_protocol_send *pps;
419 pps = lws_h2_new_pps(LWS_H2_PPS_MY_SETTINGS);
420 if (!pps)
422 lws_pps_schedule(wsi, pps);
429 lws_pps_schedule(struct lws *wsi, struct lws_h2_protocol_send *pps)
436 lws_free(pps);
440 pps->next = h2n->pps;
441 h2n->pps = pps;
451 struct lws_h2_protocol_send *pps;
456 pps = lws_h2_new_pps(LWS_H2_PPS_GOAWAY);
457 if (!pps)
462 pps->u.ga.err = err;
463 pps->u.ga.highest_sid = h2n->highest_sid;
464 lws_strncpy(pps->u.ga.str, reason, sizeof(pps->u.ga.str));
465 lws_pps_schedule(wsi, pps);
477 struct lws_h2_protocol_send *pps;
485 pps = lws_h2_new_pps(LWS_H2_PPS_RST_STREAM);
486 if (!pps)
492 pps->u.rs.sid = wsi->mux.my_sid;
493 pps->u.rs.err = err;
495 lws_pps_schedule(wsi, pps);
723 struct lws_h2_protocol_send *pps = NULL;
731 /* get the oldest pps */
733 lws_start_foreach_llp(struct lws_h2_protocol_send **, pps1, h2n->pps) {
735 pps = *pps1; /* remove us from the list */
741 if (!pps)
744 lwsl_info("%s: %s: %d\n", __func__, lws_wsi_tag(wsi), pps->type);
746 switch (pps->type) {
776 *q++ = (uint8_t)(pps->u.update_window.credit >> 24);
777 *q++ = (uint8_t)(pps->u.update_window.credit >> 16);
778 *q++ = (uint8_t)(pps->u.update_window.credit >> 8);
779 *q = (uint8_t)(pps->u.update_window.credit);
782 (int)pps->u.update_window.credit);
862 if (pps->type == LWS_H2_PPS_PING)
869 memcpy(&set[LWS_PRE], pps->u.ping.ping_payload, 8);
880 *p++ = (uint8_t)(pps->u.ga.highest_sid >> 24);
881 *p++ = (uint8_t)(pps->u.ga.highest_sid >> 16);
882 *p++ = (uint8_t)(pps->u.ga.highest_sid >> 8);
883 *p++ = (uint8_t)(pps->u.ga.highest_sid);
884 *p++ = (uint8_t)(pps->u.ga.err >> 24);
885 *p++ = (uint8_t)(pps->u.ga.err >> 16);
886 *p++ = (uint8_t)(pps->u.ga.err >> 8);
887 *p++ = (uint8_t)(pps->u.ga.err);
888 q = (unsigned char *)pps->u.ga.str;
890 while (*q && n++ < (int)sizeof(pps->u.ga.str))
905 *p++ = (uint8_t)(pps->u.rs.err >> 24);
906 *p++ = (uint8_t)(pps->u.rs.err >> 16);
907 *p++ = (uint8_t)(pps->u.rs.err >> 8);
908 *p++ = (uint8_t)(pps->u.rs.err);
910 0, pps->u.rs.sid, 4, &set[LWS_PRE]);
915 cwsi = lws_wsi_mux_from_id(wsi, pps->u.rs.sid);
927 (int)pps->u.update_window.sid,
928 (int)pps->u.update_window.credit);
929 *p++ = (uint8_t)((pps->u.update_window.credit >> 24) & 0x7f); /* 31b */
930 *p++ = (uint8_t)(pps->u.update_window.credit >> 16);
931 *p++ = (uint8_t)(pps->u.update_window.credit >> 8);
932 *p++ = (uint8_t)(pps->u.update_window.credit);
934 0, pps->u.update_window.sid, 4,
946 lws_free(pps);
951 lws_free(pps);
967 struct lws_h2_protocol_send *pps;
1197 pps = lws_h2_new_pps(LWS_H2_PPS_ACK_SETTINGS);
1198 if (!pps)
1200 lws_pps_schedule(wsi, pps);
1470 struct lws_h2_protocol_send *pps;
1585 pps = lws_h2_new_pps(LWS_H2_PPS_ACK_SETTINGS);
1586 if (!pps)
1588 lws_pps_schedule(wsi, pps);
1878 struct lws_h2_protocol_send *pps =
1880 if (!pps)
1885 memcpy(pps->u.ping.ping_payload, h2n->ping_payload, 8);
1886 lws_pps_schedule(wsi, pps);
2012 struct lws_h2_protocol_send *pps;
2042 pps = lws_h2_new_pps(LWS_H2_PPS_MY_SETTINGS);
2043 if (!pps)
2045 lws_pps_schedule(wsi, pps);