the use of windows completion port in named pipe

399 Views Asked by At

I need to transfer data between processes, I have a local server process and multiple clients process, they may send data and receive data at the same time.I create the namedpipe and CreateIoCompletionPort in server. And when the client CreateFile , the GetQueuedCompletionStatus will return which is what I expect, however, when the client writefile, the server cannot get Completion port package, I want the server to be notified when client come , out and send message, how should I do?

I know a little about the PostQueuedCompletionStatus function which can notify the completion port but I cannot get the Completion port handle in client process, could anyone tell me the common implementation, thanks!

0

There are 0 best solutions below