Solved

NamedPipe: If FlushFileBuffers(hPipe), can it be tried again by re-connecting to the named pipe

Posted on 2006-10-31
4
306 Views
Last Modified: 2010-04-15
Hi,

If the FlushFileBuffers(hPipe) in a namedpipe server has failed with an error "Pipe has been ended",
Is there any way to again to connect to the same pipe and try flushing the buffer ? Will I loose the contents that couldn't be flushed with the FlishFileBuffers(hPipe) ?
0
Comment
Question by:vanaggarwal
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 17850806
>>Is there any way to again to connect to the same pipe and try flushing the buffer ?

There is no need to do so. The system will flush the pipe when it is closed gracefully. If the pipe is forcibly shutdown by the "other" side (which would cause data loss), reconnection atempts will be futile anyway.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now