Lines Matching defs:pipe
30 * pipe cannot be more than 256 characters long.
40 Win32PipeStream::Win32PipeStream(HANDLE pipe, size_t bufSize) :
42 m_pipe(pipe)
54 /* Initialize the pipe name corresponding to a given port
59 snprintf(path, pathlen, "\\\\.\\pipe\\qemu-gles-%d", port_number);
64 * One does not create/bind a pipe, and collect a new handle each
67 * Instead, the server creates a new pipe instance each time it wants
71 * So listen() is a no-op, and accept() really creates the pipe handle.
73 * Also, connect() must create a pipe handle with CreateFile() and
87 HANDLE pipe;
91 pipe = ::CreateNamedPipe(
92 path, // pipe name
103 if (pipe == INVALID_HANDLE_VALUE) {
113 if (::ConnectNamedPipe(pipe, NULL) == 0 && GetLastError() != ERROR_PIPE_CONNECTED) {
115 CloseHandle(pipe);
119 clientStream = new Win32PipeStream(pipe, m_bufsize);
125 HANDLE pipe;
128 /* We're going to loop in order to wait for the pipe server to
132 pipe = ::CreateFile(
133 addr, // pipe name
137 OPEN_EXISTING, // open existing pipe
141 /* If we have a valid pipe handle, break from the loop */
142 if (pipe != INVALID_HANDLE_VALUE) {
146 /* We can get here if the pipe is busy, i.e. if the server hasn't
147 * create a new pipe instance to service our request. In which case
168 m_pipe = pipe;