PDA

View Full Version : Named Pipes C++


code2K
10-18-2006, 01:33 PM
Hi, I need to know if theres a way to force some data into a Named Pipe without having to open a client connection to it (I have the handle to it). I need to keep the server-end which just reads (in blocking mode) as lean as possible and hear that multiple connections can cause big overhead. Grateful for any advice.

DrunkenCoder
10-19-2006, 01:09 AM
Err, If you have a write handle to a pipe then you indeed already have a connection so just writing to it via WriteFile should work just fine and the underlying mechanisms takes care of synchronization for you.