Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Named Pipes- : Reconnection after NW failure?

Status
Not open for further replies.

mattKnight

Programmer
May 10, 2002
6,230
GB
I am stumped!

What i want to do is use NP to communicate between 2 (or ultimately more) PCs.

I can create, connect, read & write across 2 processes on the same PC ok. I hope that it will be easy to expand to a network environment

Where I can forsee a problem, is this pipe will be required to be connected at all times. Obviously, if (or when) the network glitches the connection will be lost! How can I recognise that the pipe has disconnected and thus re-create & re connect it?

The only way, I can see is to call ConnectNamedPipe in overlapped mode and test the result.

Is there a neater and more effecient way? (i.e. some mythical API called IsNamedPipeConnected would be good!)

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top