Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. [Windows SDK] Pipe status

[Windows SDK] Pipe status

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Raphael Kindt
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • R Raphael Kindt

      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

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      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:

      R 1 Reply Last reply
      0
      • M Mark Salsbery

        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:

        R Offline
        R Offline
        Raphael Kindt
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • R Raphael Kindt

          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

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          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:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups