Lines Matching defs:pipe

44 #define NAMED_PIPE_PREFIX TEXT("\\\\.\\pipe\\") TEXT(WPA_SUPPLICANT_NAMED_PIPE)
65 HANDLE pipe;
100 static int ctrl_broken_pipe(HANDLE pipe, int used)
104 if (PeekNamedPipe(pipe, NULL, 0, NULL, NULL, NULL))
122 if (ctrl_broken_pipe(dst->pipe, dst->used)) {
123 wpa_printf(MSG_DEBUG, "CTRL: closing broken pipe %p",
141 wpa_printf(MSG_DEBUG, "CTRL: Open pipe %p", dst);
145 dst->pipe = INVALID_HANDLE_VALUE;
166 /* TODO: add support for configuring access list for the pipe */
167 dst->pipe = CreateNamedPipe(name,
175 if (dst->pipe == INVALID_HANDLE_VALUE) {
181 if (ConnectNamedPipe(dst->pipe, &dst->overlap)) {
184 CloseHandle(dst->pipe);
204 CloseHandle(dst->pipe);
224 wpa_printf(MSG_DEBUG, "CTRL: close pipe %p", dst);
232 if (dst->pipe != INVALID_HANDLE_VALUE) {
237 * FlushFileBuffers(dst->pipe);
239 CloseHandle(dst->pipe);
268 if (!ReadFileEx(dst->pipe, dst->req_buf, sizeof(dst->req_buf),
331 if (!WriteFileEx(dst->pipe, dst->rsp_buf, send_len, &dst->overlap,
366 if (!GetOverlappedResult(dst->pipe, &dst->overlap, &bytes, FALSE)) {
374 /* Open a new named pipe for the next client. */
506 if (!WriteFile(dst->pipe, sbuf, llen + len, &written,
530 WaitForSingleObject(priv->ctrl_dst->pipe, INFINITE);
544 HANDLE pipe;
564 if (ctrl_broken_pipe(dst->pipe, dst->used)) {
565 wpa_printf(MSG_DEBUG, "CTRL: closing broken pipe %p",
582 wpa_printf(MSG_DEBUG, "CTRL: Open pipe %p", dst);
585 dst->pipe = INVALID_HANDLE_VALUE;
598 /* TODO: add support for configuring access list for the pipe */
599 dst->pipe = CreateNamedPipe(NAMED_PIPE_PREFIX,
606 if (dst->pipe == INVALID_HANDLE_VALUE) {
612 if (ConnectNamedPipe(dst->pipe, &dst->overlap)) {
615 CloseHandle(dst->pipe);
635 CloseHandle(dst->pipe);
655 wpa_printf(MSG_DEBUG, "CTRL: close pipe %p", dst);
663 if (dst->pipe != INVALID_HANDLE_VALUE) {
668 * FlushFileBuffers(dst->pipe);
670 CloseHandle(dst->pipe);
699 if (!ReadFileEx(dst->pipe, dst->req_buf, sizeof(dst->req_buf),
704 /* FIX: if this was the pipe waiting for new global
706 * Should try to open a new pipe.. */
750 if (!WriteFileEx(dst->pipe, dst->rsp_buf, send_len, &dst->overlap,
783 if (!GetOverlappedResult(dst->pipe, &dst->overlap, &bytes, FALSE)) {
791 /* Open a new named pipe for the next client. */