Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Leda > Re: ReadFile pr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 124 of 212
Post > Topic >>

Re: ReadFile problem with pipe

by charles-leonard.couvrette@[EMAIL PROTECTED] (Charles) Apr 14, 2004 at 02:05 PM

charles-leonard.couvrette@[EMAIL PROTECTED]
 (Charles) wrote in message
news:<72405e4a.0404130629.6b141158@[EMAIL PROTECTED]
>...
> Hi, 
> 
> I got a c++ program who created a named pipe to communicate with his
> child: a perl script. The perl script just open the named pipe (
> open(PIPE, "> pipename") ) and print data to it. On the other side I
> use a separate thread to read the message print by the child. The
> function I use is ReadFile and the problem is that it block until I
> close the pipe on the other side (perl script). I want my data live,
> not when the script finish his execution. I've try to flush the output
> in my perl script using PIPE->autoflush but it result in a BROKEN_PIPE
> error in ReadFile. Is there a way to tell the ReadFile function to
> read the data the script just output without blocking until the pipe
> is close?
> 
> Thanks 
> 
> Charles

Forget what I said ... I found the solution... anonymous pipe is the way
to go :)

Charles
 




 2 Posts in Topic:
ReadFile problem with pipe
charles-leonard.couvrette  2004-04-13 07:29:47 
Re: ReadFile problem with pipe
charles-leonard.couvrette  2004-04-14 14:05:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 20:29:23 CDT 2008.