Lines Matching defs:pipe

50 #define NAMED_PIPE_PREFIX TEXT("\\\\.\\pipe\\") TEXT(WPA_SUPPLICANT_NAMED_PIPE)
71 HANDLE pipe;
106 static int ctrl_broken_pipe(HANDLE pipe, int used)
110 if (PeekNamedPipe(pipe, NULL, 0, NULL, NULL, NULL))
128 if (ctrl_broken_pipe(dst->pipe, dst->used)) {
129 wpa_printf(MSG_DEBUG, "CTRL: closing broken pipe %p",
147 wpa_printf(MSG_DEBUG, "CTRL: Open pipe %p", dst);
151 dst->pipe = INVALID_HANDLE_VALUE;
172 /* TODO: add support for configuring access list for the pipe */
173 dst->pipe = CreateNamedPipe(name,
181 if (dst->pipe == INVALID_HANDLE_VALUE) {
187 if (ConnectNamedPipe(dst->pipe, &dst->overlap)) {
190 CloseHandle(dst->pipe);
210 CloseHandle(dst->pipe);
230 wpa_printf(MSG_DEBUG, "CTRL: close pipe %p", dst);
238 if (dst->pipe != INVALID_HANDLE_VALUE) {
243 * FlushFileBuffers(dst->pipe);
245 CloseHandle(dst->pipe);
274 if (!ReadFileEx(dst->pipe, dst->req_buf, sizeof(dst->req_buf),
337 if (!WriteFileEx(dst->pipe, dst->rsp_buf, send_len, &dst->overlap,
372 if (!GetOverlappedResult(dst->pipe, &dst->overlap, &bytes, FALSE)) {
380 /* Open a new named pipe for the next client. */
512 if (!WriteFile(dst->pipe, sbuf, llen + len, &written,
536 WaitForSingleObject(priv->ctrl_dst->pipe, INFINITE);
550 HANDLE pipe;
570 if (ctrl_broken_pipe(dst->pipe, dst->used)) {
571 wpa_printf(MSG_DEBUG, "CTRL: closing broken pipe %p",
588 wpa_printf(MSG_DEBUG, "CTRL: Open pipe %p", dst);
591 dst->pipe = INVALID_HANDLE_VALUE;
604 /* TODO: add support for configuring access list for the pipe */
605 dst->pipe = CreateNamedPipe(NAMED_PIPE_PREFIX,
612 if (dst->pipe == INVALID_HANDLE_VALUE) {
618 if (ConnectNamedPipe(dst->pipe, &dst->overlap)) {
621 CloseHandle(dst->pipe);
641 CloseHandle(dst->pipe);
661 wpa_printf(MSG_DEBUG, "CTRL: close pipe %p", dst);
669 if (dst->pipe != INVALID_HANDLE_VALUE) {
674 * FlushFileBuffers(dst->pipe);
676 CloseHandle(dst->pipe);
705 if (!ReadFileEx(dst->pipe, dst->req_buf, sizeof(dst->req_buf),
710 /* FIX: if this was the pipe waiting for new global
712 * Should try to open a new pipe.. */
756 if (!WriteFileEx(dst->pipe, dst->rsp_buf, send_len, &dst->overlap,
789 if (!GetOverlappedResult(dst->pipe, &dst->overlap, &bytes, FALSE)) {
797 /* Open a new named pipe for the next client. */