How to check if a named pipe(file) is empty

Reply

Join Date: Apr 2008
Posts: 74
Reputation: chunalt787 is an unknown quantity at this point 
Solved Threads: 1
chunalt787 chunalt787 is offline Offline
Junior Poster in Training

How to check if a named pipe(file) is empty

 
0
  #1
Nov 26th, 2009
I need to check if a named pipe is empty. I am cycling through about 10 of them and if its empty I don't want to block until there is something in it I just want to move on to the next one. Is there any way to check if the named pipe is empty before I read? Its just a file and I have a file descriptor so checking the file would probably work as well. I can't seem to find a way to do this on google.

Thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 368 | Replies: 0
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC