Re: Named pipe problem
- From: 2kaud <2kaud@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 5 Jan 2007 06:42:00 -0800
I've now donw some investigative work on this and I've found the problem but
have no idea what is causing it.
The situation is this. When the client opens a pipe on the same machine as
the server, I get 1 pipe connect request.
When the same client program on a different computer opens the same pipe I
get TWO pipe connect requests. This is why I was getting error 231 when
connecting over a network.
Please, can anyone provide some info as to what is happening please - why am
I getting 2 connection requests over a network?
John.
"2kaud" wrote:
Thanks for the suggestion. I've now tried the SDK example and indeed that.
does work like a charm!
As far as I can see, the only difference between that example and my own
code for the actual connection of the pipes is that I use NULL for the
security descriptor for CreateFile/CreateNamedPipe and the SDK example builds
an explicit Security Descriptor.
I'll try building and using the same SD from the SDK example in my own code
and see what happens. I'll post back here with my results.
John.
"Arkady Frenkel" wrote:
Did you tried pipe example from PSDK that work like a charm for server and
clients on different computers.
Look at C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Samples\WinBase\IPC\NamePipe project for that. The only difference that
local ( to server ) clients receive notification that server gone but not
remote
Arkady
"2kaud" <2kaud@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:42C1A37C-A13A-4045-B537-94D0E8BA739D@xxxxxxxxxxxxxxxx
Please can someone kindly help me. I'm trying to establish a named pipe
connection between two computers. When I run the client (CreateFile with .
as
computer name) and the Server (CreateNamedPipe) on the same computer it
works.
However, when I run the client (with the computer name of the server in
CreateFile) on a different computer to the server I get error 231 - All
pipe
instances are busy - which they are not!
What is going on please? How can I establish a named pipe connection
between
2 computers?
Any help would be much appreciated please.
John.
- Follow-Ups:
- Re: Named pipe problem
- From: Ali
- Re: Named pipe problem
- References:
- Re: Named pipe problem
- From: Arkady Frenkel
- Re: Named pipe problem
- Prev by Date: getting the error status of a socket
- Next by Date: Re: getting the error status of a socket
- Previous by thread: Re: Named pipe problem
- Next by thread: Re: Named pipe problem
- Index(es):
Relevant Pages
|