Lines Matching refs:w_read
348 uv_handle_t *h = (uv_handle_t *)wsi_to_priv_uv(wsi)->w_read.pwatcher;
429 !wsi_to_priv_uv(wsi)->w_read.pwatcher)
436 if (wsi_to_priv_uv(wsi)->w_read.pwatcher)
437 uv_poll_stop(wsi_to_priv_uv(wsi)->w_read.pwatcher);
472 uv_handle_t *h = (uv_handle_t *)wsi_to_priv_uv(wsi)->w_read.pwatcher;
488 wsi_to_priv_uv(wsi)->w_read.pwatcher = NULL;
499 struct lws_io_watcher_libuv *w_read = &wsi_to_priv_uv(wsi)->w_read;
508 w_read->context = wsi->a.context;
510 w_read->pwatcher = lws_malloc(sizeof(*w_read->pwatcher), "uvh");
511 if (!w_read->pwatcher)
515 n = uv_poll_init(pt_to_priv_uv(pt)->io_loop, w_read->pwatcher,
519 w_read->pwatcher, wsi->desc.sockfd);
524 lws_free(w_read->pwatcher);
525 w_read->pwatcher = NULL;
529 ((uv_handle_t *)w_read->pwatcher)->data = (void *)wsi;
545 struct lws_io_watcher_libuv *w = &(wsi_to_priv_uv(wsi)->w_read);
598 struct lws_io_watcher_libuv *w_read;
604 w_read = &wsi_to_priv_uv(wsi)->w_read;
606 if (w_read->context)
614 w_read->context = wsi->a.context;
616 w_read->pwatcher = lws_malloc(sizeof(*w_read->pwatcher), "uvh");
617 if (!w_read->pwatcher)
621 w_read->pwatcher, wsi->desc.sockfd);
636 ((uv_handle_t *)w_read->pwatcher)->data = (void *)wsi;
864 struct lws_io_watcher_libuv *w_read = &wsi_to_priv_uv(wsi)->w_read;
866 if (!w_read->pwatcher)
881 handle = (uv_handle_t *)w_read->pwatcher;
885 w_read->pwatcher = NULL;