• Home
  • Raw
  • Download

Lines Matching refs:stdwsi

137 		if (lsp->stdwsi[n]) {  in lws_spawn_piped_destroy()
138 lws_set_timeout(lsp->stdwsi[n], 1, LWS_TO_KILL_ASYNC); in lws_spawn_piped_destroy()
139 lsp->stdwsi[n] = NULL; in lws_spawn_piped_destroy()
378 lsp->stdwsi[n] = lws_create_stdwsi(i->vh->context, i->tsi, in lws_spawn_piped()
380 if (!lsp->stdwsi[n]) { in lws_spawn_piped()
386 &lsp->stdwsi[n]->lc, "nspawn-stdwsi-%d", n); in lws_spawn_piped()
388 lsp->stdwsi[n]->lsp_channel = (uint8_t)n; in lws_spawn_piped()
389 lws_vhost_bind_wsi(i->vh, lsp->stdwsi[n]); in lws_spawn_piped()
390 lsp->stdwsi[n]->a.protocol = pcol; in lws_spawn_piped()
391 lsp->stdwsi[n]->a.opaque_user_data = i->opaque; in lws_spawn_piped()
394 lsp->stdwsi[n], n, lsp->pipe_fds[n][n == 0], in lws_spawn_piped()
399 lsp->stdwsi[n]->desc.sockfd = lsp->pipe_fds[n][n == 0]; in lws_spawn_piped()
421 if (context->event_loop_ops->sock_accept(lsp->stdwsi[n])) in lws_spawn_piped()
424 if (__insert_wsi_socket_into_fds(context, lsp->stdwsi[n])) in lws_spawn_piped()
427 lsp->stdwsi[n]->parent = i->opt_parent; in lws_spawn_piped()
428 lsp->stdwsi[n]->sibling_list = i->opt_parent->child_list; in lws_spawn_piped()
429 i->opt_parent->child_list = lsp->stdwsi[n]; in lws_spawn_piped()
433 if (lws_change_pollfd(lsp->stdwsi[LWS_STDIN], LWS_POLLIN, LWS_POLLOUT)) in lws_spawn_piped()
435 if (lws_change_pollfd(lsp->stdwsi[LWS_STDOUT], LWS_POLLOUT, LWS_POLLIN)) in lws_spawn_piped()
437 if (lws_change_pollfd(lsp->stdwsi[LWS_STDERR], LWS_POLLOUT, LWS_POLLIN)) in lws_spawn_piped()
441 lsp->stdwsi[LWS_STDIN]->desc.sockfd, in lws_spawn_piped()
442 lsp->stdwsi[LWS_STDOUT]->desc.sockfd, in lws_spawn_piped()
443 lsp->stdwsi[LWS_STDERR]->desc.sockfd); in lws_spawn_piped()
571 __remove_wsi_socket_from_fds(lsp->stdwsi[n]); in lws_spawn_piped()
574 if (lsp->stdwsi[n]) in lws_spawn_piped()
575 __lws_free_wsi(lsp->stdwsi[n]); in lws_spawn_piped()
605 if (lsp->stdwsi[n] == wsi) in lws_spawn_stdwsi_closed()
606 lsp->stdwsi[n] = NULL; in lws_spawn_stdwsi_closed()