Lines Matching refs:wpr
265 struct lws_wsi_eventlibs_libevent *wpr = wsi_to_priv_event(wsi); in elops_accept_event() local
268 wpr->w_read.context = context; in elops_accept_event()
269 wpr->w_write.context = context; in elops_accept_event()
280 wpr->w_read.watcher = event_new(ptpr->io_loop, fd, in elops_accept_event()
281 (EV_READ | EV_PERSIST), lws_event_cb, &wpr->w_read); in elops_accept_event()
282 wpr->w_write.watcher = event_new(ptpr->io_loop, fd, in elops_accept_event()
283 (EV_WRITE | EV_PERSIST), lws_event_cb, &wpr->w_write); in elops_accept_event()
293 struct lws_wsi_eventlibs_libevent *wpr = wsi_to_priv_event(wsi); in elops_io_event() local
303 if ((flags & LWS_EV_WRITE) && !wpr->w_write.set) { in elops_io_event()
304 event_add(wpr->w_write.watcher, NULL); in elops_io_event()
305 wpr->w_write.set = 1; in elops_io_event()
308 if ((flags & LWS_EV_READ) && !wpr->w_read.set) { in elops_io_event()
309 event_add(wpr->w_read.watcher, NULL); in elops_io_event()
310 wpr->w_read.set = 1; in elops_io_event()
313 if ((flags & LWS_EV_WRITE) && wpr->w_write.set) { in elops_io_event()
314 event_del(wpr->w_write.watcher); in elops_io_event()
315 wpr->w_write.set = 0; in elops_io_event()
318 if ((flags & LWS_EV_READ) && wpr->w_read.set) { in elops_io_event()
319 event_del(wpr->w_read.watcher); in elops_io_event()
320 wpr->w_read.set = 0; in elops_io_event()