Lines Matching defs:wsi
29 struct lws *wsi;
40 lws_callback_on_writable(v->wsi);
42 lws_sul_schedule(lws_get_context(v->wsi), 0, &v->sul, sul_cb,
47 callback_raw_test(struct lws *wsi, enum lws_callback_reasons reason,
51 lws_get_vhost(wsi), lws_get_protocol(wsi));
62 vhd = lws_protocol_vh_priv_zalloc(lws_get_vhost(wsi),
63 lws_get_protocol(wsi), sizeof(struct raw_vhd));
122 if (!lws_adopt_descriptor_vhost(lws_get_vhost(wsi),
143 vhd->wsi = wsi;
144 lws_sul_schedule(lws_get_context(wsi), 0, &vhd->sul, sul_cb, 1);
165 if (lws_write(wsi, (uint8_t *)"hello-this-is-written-every-couple-of-seconds\r\n", 47, LWS_WRITE_RAW) != 47)