Re: named pipes



In <gkck6r$art$01$1@xxxxxxxxxxxxxxxxx>, on 01/11/2009
at 12:12 PM, Peter Kumpf <PaleKumNOSPAM@xxxxxxxxxxx> said:

Hi,

I understand the pipe handling, in that way that, if Client runs on
another computer i had to change the pipe name when i open the pipe.

E.g.: the pipe at the sever is created with: "DosCreateNPipe(
"\\pipe\\testpipe", ...
and the Client uses: "DosOpen( "\\\\ComputerName\\pipe\\testpipe", ...

Is that wrong ?

No this is consistent. If you don't specify an explicit host name,
DosOpen is going to look for the pipe on the current host, by default.
This is really no different than drive letters and other prefixes of this
sort. If you don't specify an explicit drive letter, the DosOpen is going
to look only on the current drive, by default.

But i guess it has something to do with an "network access permission".

In this case, it's not permissions so much as existance. The pipe exists
only on the host that creates the pipe.

Steven

--
--------------------------------------------------------------------------------------------
Steven Levine <steve53@xxxxxxxxxxxxxxxxxxx>
eCS/Warp/DIY etc. www.scoug.com www.ecomstation.com
--------------------------------------------------------------------------------------------

.



Relevant Pages