Lines Matching defs:wsi
31 struct lws *wsi;
68 callback_client_loopback_test(struct lws *wsi, enum lws_callback_reasons reason,
90 lws_return_http_status(wsi, 400, "Arg needs to be in format ws://xxx or wss://xxx");
96 i.context = lws_get_context(wsi);
111 lws_return_http_status(wsi, 400, buf);
122 pss->wsi = lws_client_connect_via_info(&i);
123 if (!pss->wsi)
124 lws_return_http_status(wsi, 401, "client-loopback-test: connect failed\n");
128 lws_return_http_status(wsi, 200, "OK");
144 n = lws_write(wsi, (unsigned char *)buf + LWS_PRE,