named pipe
-
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
-
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
you can use select system call or do non-blocking IO using fcntl system call. -- Pratap
-
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
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