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. named pipe

named pipe

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 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.
  • V Offline
    V Offline
    vineeshV
    wrote on last edited by
    #1

    In my program iam using a named pipe for reading from source to destination programs. but when the source is waiting for input from destination(via another pipe) i cant read from the pipe .Only after the input was given ,the reading is possible. Can I use any other technique by replacing pipes. (Source and destination programs are at same machine)

    vineesh

    R H 2 Replies Last reply
    0
    • V vineeshV

      In my program iam using a named pipe for reading from source to destination programs. but when the source is waiting for input from destination(via another pipe) i cant read from the pipe .Only after the input was given ,the reading is possible. Can I use any other technique by replacing pipes. (Source and destination programs are at same machine)

      vineesh

      R Offline
      R Offline
      Raj Prathap
      wrote on last edited by
      #2

      you can use select system call or do non-blocking IO using fcntl system call. -- Pratap

      1 Reply Last reply
      0
      • V vineeshV

        In my program iam using a named pipe for reading from source to destination programs. but when the source is waiting for input from destination(via another pipe) i cant read from the pipe .Only after the input was given ,the reading is possible. Can I use any other technique by replacing pipes. (Source and destination programs are at same machine)

        vineesh

        H Offline
        H Offline
        harsha_1234
        wrote on last edited by
        #3

        you can check whther there is data present on the pipe or not bu calling PeekNamedPipe() api so that you can come to know data is available or not!! and then make ReadFile() call is data is available i did not understood your problem very well but this can be your solution so replied bye Harshal

        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