Lines Matching refs:pollfd
62 lws_handle_POLLOUT_event(struct lws *wsi, struct lws_pollfd *pollfd)
133 if (pollfd)
135 lwsl_wsi_info(wsi, "failed at set pollfd");
164 if (pollfd) {
169 lwsl_wsi_info(wsi, "failed at set pollfd");
184 lwsl_wsi_info(wsi, "failed at set pollfd");
638 lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd,
653 if (!pollfd) {
655 * calling with NULL pollfd for periodic background processing
658 assert(pollfd);
661 assert(lws_socket_is_valid(pollfd->fd));
664 wsi = wsi_from_fd(context, pollfd->fd);
680 * zero down pollfd->revents after handling
690 if ((pollfd->revents & LWS_POLLHUP) == LWS_POLLHUP) {
693 if (!(pollfd->revents & pollfd->events & LWS_POLLIN)) {
705 pollfd->fd);
720 if (pollfd->revents & LWS_POLLOUT)
740 if ((pollfd->revents & LWS_POLLOUT) == LWS_POLLOUT &&
750 pollfd->revents &= ~(LWS_POLLOUT);
751 pollfd->revents |= LWS_POLLIN;
767 handle_POLLIN(pt, wsi, pollfd)) {
791 * pollfd may point to something else after the close
792 * due to pollfd swapping scheme on delete on some platforms
804 pollfd->revents = 0;
813 lws_service_fd(struct lws_context *context, struct lws_pollfd *pollfd)
815 return lws_service_fd_tsi(context, pollfd, 0);