TutuGeorge
TutuGeorge

Reputation: 2012

NamedPipes in Windows 7

I am trying to create a named pipe. The server will create the pipe and writes data into it and the client connect to that pipe and read the data. It works for me when i gave the name for pipe as the default name

\\\\.\\pipe\\mynamedpipe

But when i try to give my machine it is not working..

\\\\MyMachine01\\pipe\\mynamedpipe

Is this allowed? Right now both my client and server programmes are in the local machine.

Upvotes: 0

Views: 950

Answers (1)

Mat
Mat

Reputation: 206699

According to the Pipe Names documentation:

The pipe server cannot create a pipe on another computer, so CreateNamedPipe must use a period for the server name, as shown in the following example.

\\.\pipe\PipeName

You should be able to use a qualified name for the "clients" though.

Upvotes: 3

Related Questions