Lines Matching defs:ssi

83 	if (!h->ssi.state)
87 ret = h->ssi.state((void *)((uint8_t *)(h + 1)), NULL, cs, flags);
132 lws_metrics_tag_add(&h->cal_txn.mtags_owner, "ss", h->ssi.streamtype);
236 if (h->ssi.state) {
241 r = h->ssi.state(lws_sspc_to_user_object(h), NULL,
252 lwsl_sspc_info(h, "CONNECTED (%s)", h->ssi.streamtype);
281 if (h->ss_dangling_connected && h->ssi.state) {
286 r = h->ssi.state(ss_to_userobj(h), NULL,
335 &h->ssi, 1);
404 n = (int)strlen(h->ssi.streamtype) + 1 + 4 + 4;
413 lws_strncpy((char *)&s[12], h->ssi.streamtype, sizeof(s) - 12);
525 if (!h->ssi.tx) {
530 n = h->ssi.tx(m, h->ord++, pkt + LWS_PRE + 19, &len,
620 lws_sspc_create(struct lws_context *context, int tsi, const lws_ss_info_t *ssi,
630 /* allocate the handle (including ssi), the user alloc,
633 h = malloc(sizeof(lws_sspc_handle_t) + ssi->user_alloc +
634 strlen(ssi->streamtype) + 1);
644 if (ssi->fic.fi_owner.count)
645 lws_fi_import(&h->fic, &ssi->fic);
647 lws_fi_inherit_copy(&h->fic, &context->fic, "ss", ssi->streamtype);
661 ssi->streamtype);
663 memcpy(&h->ssi, ssi, sizeof(*ssi));
665 memset(ua, 0, ssi->user_alloc);
666 p = (char *)ua + ssi->user_alloc;
667 memcpy(p, ssi->streamtype, strlen(ssi->streamtype) + 1);
668 h->ssi.streamtype = (const char *)p;
672 if (!ssi->manual_initial_tx_credit)
675 h->txc.peer_tx_cr_est = ssi->manual_initial_tx_credit;
677 if (!strcmp(ssi->streamtype, LWS_SMD_STREAMTYPENAME))
684 *((void **)(ua + ssi->opaque_user_data_offset)) = opaque_user_data;
685 *((void **)(ua + ssi->handle_offset)) = h;
753 if (h->ss_dangling_connected && h->ssi.state) {
794 lws_sul_debug_zombies(h->context, h, sizeof(*h) + h->ssi.user_alloc,
926 lwsl_sspc_info(h, "def %s\n", h->ssi.streamtype);
928 return h->ssi.streamtype;
1085 h->ssi.rx = rx;
1087 h->ssi.tx = tx;
1089 h->ssi.state = state;