[Windows SDK] Pipe status
-
Hello world! How to detect if a windows named pipe is FULL :confused: I use a overlapped structure and the GetOverlappedResult function (for asynchronous I/O). When my named pipe is full I want to wait free space to continue writing data (like a FIFO). But I don't know how to detect if my pipe is full? Thanks for any help, advices, etc... :)
Hello World!!! :) from Raphaël
-
Hello world! How to detect if a windows named pipe is FULL :confused: I use a overlapped structure and the GetOverlappedResult function (for asynchronous I/O). When my named pipe is full I want to wait free space to continue writing data (like a FIFO). But I don't know how to detect if my pipe is full? Thanks for any help, advices, etc... :)
Hello World!!! :) from Raphaël
You can't. One of the ideas of overlapped I/O is so that you don't have to wait. Overlapped I/O is also FIFO already. If you want to wait, don't use overlapped I/O. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
You can't. One of the ideas of overlapped I/O is so that you don't have to wait. Overlapped I/O is also FIFO already. If you want to wait, don't use overlapped I/O. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Thanks for your reply... My problem is that I've a first process that writes data (raw image) to a pipe and a second process which connects to this pipe and reads data from the pipe. I want to use overlapped structure to let the first process write the next data without waiting until the second process read the old data. It's important for the first process to know when the pipe is full because at this time It can skip images. If you have any suggestions to do that... Thanks in advance. :)
Hello World!!! :) from Raphaël
-
Thanks for your reply... My problem is that I've a first process that writes data (raw image) to a pipe and a second process which connects to this pipe and reads data from the pipe. I want to use overlapped structure to let the first process write the next data without waiting until the second process read the old data. It's important for the first process to know when the pipe is full because at this time It can skip images. If you have any suggestions to do that... Thanks in advance. :)
Hello World!!! :) from Raphaël
Throttling data stream rate can be complex. You could establish a constant rate or use an adjustable/variable rate based on comm conditions, which are continuously monitored. You'll maybe want to somehow keep track of how many overlapped operations are pending. If this value keeps increasing, then you need to slow the send rate until the amount of pending ops stays constant. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: