• Home
  • Raw
  • Download

Lines Matching refs:stdwsi

127 			if (lsp->stdwsi[n]) {  in lws_spawn_piped_destroy()
129 wsi = lsp->stdwsi[n]; in lws_spawn_piped_destroy()
130 lsp->stdwsi[n]->desc.filefd = NULL; in lws_spawn_piped_destroy()
131 lsp->stdwsi[n] = NULL; in lws_spawn_piped_destroy()
266 wsi = lsp->stdwsi[LWS_STDOUT]; in windows_pipe_poll_hack()
267 wsi1 = lsp->stdwsi[LWS_STDERR]; in windows_pipe_poll_hack()
273 CloseHandle(lsp->stdwsi[LWS_STDOUT]->desc.filefd); in windows_pipe_poll_hack()
275 lsp->stdwsi[LWS_STDOUT]->desc.filefd = NULL; in windows_pipe_poll_hack()
276 lsp->stdwsi[LWS_STDOUT] = NULL; in windows_pipe_poll_hack()
279 if (lsp->stdwsi[LWS_STDIN]) { in windows_pipe_poll_hack()
282 CloseHandle(lsp->stdwsi[LWS_STDIN]->desc.filefd); in windows_pipe_poll_hack()
283 wsi = lsp->stdwsi[LWS_STDIN]; in windows_pipe_poll_hack()
284 lsp->stdwsi[LWS_STDIN]->desc.filefd = NULL; in windows_pipe_poll_hack()
285 lsp->stdwsi[LWS_STDIN] = NULL; in windows_pipe_poll_hack()
317 lsp->stdwsi[LWS_STDERR]->desc.filefd = NULL; in windows_pipe_poll_hack()
318 lsp->stdwsi[LWS_STDERR] = NULL; in windows_pipe_poll_hack()
411 lsp->stdwsi[n] = lws_create_basic_wsi(i->vh->context, i->tsi, in lws_spawn_piped()
413 if (!lsp->stdwsi[n]) { in lws_spawn_piped()
419 &lsp->stdwsi[n]->lc, "nspawn-stdwsi-%d", n); in lws_spawn_piped()
421 lsp->stdwsi[n]->lsp_channel = n; in lws_spawn_piped()
422 lws_vhost_bind_wsi(i->vh, lsp->stdwsi[n]); in lws_spawn_piped()
423 lsp->stdwsi[n]->a.protocol = pcol; in lws_spawn_piped()
424 lsp->stdwsi[n]->a.opaque_user_data = i->opaque; in lws_spawn_piped()
426 lsp->stdwsi[n]->desc.filefd = lsp->pipe_fds[n][!n]; in lws_spawn_piped()
427 lsp->stdwsi[n]->file_desc = 1; in lws_spawn_piped()
430 __func__, lsp->stdwsi[n], n, in lws_spawn_piped()
438 lsp->stdwsi[n]->desc.filefd = lsp->pipe_fds[n][!!(n == 0)]; in lws_spawn_piped()
448 lsp->stdwsi[n]->parent = i->opt_parent; in lws_spawn_piped()
449 lsp->stdwsi[n]->sibling_list = i->opt_parent->child_list; in lws_spawn_piped()
450 i->opt_parent->child_list = lsp->stdwsi[n]; in lws_spawn_piped()
454 lsp->stdwsi[LWS_STDIN]->desc.sockfd, in lws_spawn_piped()
455 lsp->stdwsi[LWS_STDOUT]->desc.sockfd, in lws_spawn_piped()
456 lsp->stdwsi[LWS_STDERR]->desc.sockfd); in lws_spawn_piped()
533 __remove_wsi_socket_from_fds(lsp->stdwsi[n]); in lws_spawn_piped()
536 if (lsp->stdwsi[n]) in lws_spawn_piped()
537 __lws_free_wsi(lsp->stdwsi[n]); in lws_spawn_piped()
567 if (lsp->stdwsi[n] == wsi) in lws_spawn_stdwsi_closed()
568 lsp->stdwsi[n] = NULL; in lws_spawn_stdwsi_closed()