Overlapped I/O on anonymous pipe

后端 未结 3 2250
深忆病人
深忆病人 2020-11-27 18:24

Is it possible to use overlapped I/O with an anonymous pipe? CreatePipe() does not have any way of specifying FILE_FLAG_OVERLAPPED, so I assume ReadFile() will block, even i

3条回答
  •  伪装坚强ぢ
    2020-11-27 19:24

    No. As explained here, anonymous pipes do not support asynchronous I/O. You need to use a named pipe. There's example code to do this on MSDN here and here.

提交回复
热议问题