Named Pipes using C++
I am trying to create a named pipe server to write to the pipe without the client. What I am trying to do is
1)CreateNamedPipe
2)I dont want the client to connect right no开发者_如何学Cw 3)The pipe will be written by the server and later the pipe will be read.Is it possible to do something like this?
Please Help if you have anything about this issue.
You need to have separate thread that will wait on given named pipe using ConnectNamedPipe
. As soon as client connects, ConnectNamedPipe would return. Communicate using that newly connected pipe (probably spawn a new thread for this new connection), then return back to ConnectNamedPipe
for another pipe connection.
精彩评论