This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Named pipes (blocking problem)
- From: "Dave Korn" <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 22 Dec 2008 17:03:02 +0000
- Subject: Re: Named pipes (blocking problem)
- References: <005b01c96455$6c6bed60$4001a8c0@mycomputer>
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):-
>
> http://msdn.microsoft.com/en-us/library/aa365150(VS.85).aspx
>
> 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.
cheers,
DaveK
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/