I am trying to create a network connection through named pipes. I do this as msdn says . I am creating a server-side server function with a function.
CreateNamedPipe(
"\\\\.\\pipe\\myNamedPipe",
DUPLEX | FILE_FLAG_OVERLAPPED,
0,
255,
BUFFER_SIZE,
BUFFER_SIZE,
0,
IntPtr.Zero);
and tries to connect via the CreateFile () function
CreateFile(
"\\\\10.0.0.29\\pipe\\myNamedPipe",
GENERIC_READ | GENERIC_WRITE,
0,
IntPtr.Zero,
OPEN_EXISTING,
FILE_FLAG_OVERLAPPED,
IntPtr.Zero);
10.0.0.29 - server ip machines. If I try to run the client program on the server machine with the pipe name "\\. \ Pipe \ myNamedPipe" or "\\ 10.0.0.29 \ pipe \ myNamedPipe" (10.0.0.29 is the ip server) or "\\ localhost \ pipe \ myNamedPipe "is working fine.
So how to use named pipes over the network?
source
share