Named pipes (blocking problem)
Mon Dec 22 17:04:00 GMT 2008
John Emmas wrote:
> I'm trying to build a program that implements inter-process communication
> using named pipes. Because the code needs to also work under Windows
> (MSVC++) it uses CreateNamedPipe(...) to create the pipes (described here):-
> If I understand the description, it seems that the created pipe can either
> be blocking or nonblocking depending on whether the flag
> FILE_FLAG_OVERLAPPED is specified at creation time.
Nope. Overlapped and blocking are slightly different concepts;
overlapped basically means "enabled for asynchronous I/O". What
you're looking for is PIPE_WAIT/_NOWAIT, further down the same page.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin