|Subject:||Fwd: Small Comment to Winboard Source Code|
|Date:||Sat, 21 Sep 2019 14:58:53 -0700|
my name is Dieter Bürßner, you might know me from about 15 or more years ago, when I developed the Winboard engine Yace. Well, I lost somewhat contact to computer chess. For some totally unrelated private programming idea, I want to use pipes in Windows for interprocess communication. I remembered Winboard and had a look at the source code, where I found, how you have implemented this – and this was indeed helpful. However, your use of asynchronous IO to the pipe stroke my eyes. Maybe I have not understood your code well, or the Microsoft documentation. At MS, I read at https://docs.microsoft.com/en-us/windows/desktop/ipc/anonymous-pipe-operations
Asynchronous (overlapped) read and write operations are not supported by anonymous pipes. This means that you cannot use the ReadFileEx and WriteFileEx functions with anonymous pipes. In addition, the lpOverlapped parameter of ReadFile and WriteFile is ignored when these functions are used with anonymous pipes.
In winboard.c, functions DoReadFile and DoWriteFile use OVERLAPPED.
|[Prev in Thread]||Current Thread||[Next in Thread]|