Lines Matching defs:wsi
54 sanity_assert_no_wsi_traces(const struct lws_context *context, struct lws *wsi)
67 /* confirm the wsi doesn't already exist */
69 while (p != done && *p != wsi)
75 assert(0); /* this wsi is still mentioned inside lws */
124 insert_wsi(const struct lws_context *context, struct lws *wsi)
128 if (sanity_assert_no_wsi_traces(context, wsi))
132 assert(context->lws_lookup[wsi->desc.sockfd -
135 context->lws_lookup[wsi->desc.sockfd - \
136 lws_plat_socket_offset()] = wsi;
146 /* confirm fd isn't already in use by a wsi */
148 if (sanity_assert_no_sockfd_traces(context, wsi->desc.sockfd))
163 *p = wsi;
212 delete_from_fdwsi(const struct lws_context *context, struct lws *wsi)
228 while (p != done && (!*p || (*p) != wsi))
236 lws_plat_insert_socket_into_fds(struct lws_context *context, struct lws *wsi)
238 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi];
241 context->event_loop_ops->io(wsi, LWS_EV_START | LWS_EV_READ);
248 struct lws *wsi, int m)
250 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi];
253 context->event_loop_ops->io(wsi,
261 struct lws *wsi, struct lws_pollfd *pfd)