Questions tagged [named-pipes]

A named pipe is an inter-process communication mechanism, which exists both on Unix and Unix-like systems (where it is also known as a FIFO and is file-like), and on Microsoft Windows (where it is an in-memory kernel object). The semantics and APIs differ substantially between the platforms.

Unix

On Unix and Unix-like systems a named pipe (also known as a FIFO for its behavior) is an extension to the traditional pipe concept, and is one of the methods of inter-process communication.

A traditional pipe is "unnamed" because it exists anonymously and persists only for as long as the process is running. A named pipe is system-persistent and exists beyond the life of the process and must be deleted once it is no longer being used. Processes generally attach to the named pipe (usually appearing as a file) to perform inter-process communication (IPC).

Windows

On Windows operating systems a named pipe is a named kernel object which provides duplex data transfers between two processes, a pipe server and a pipe client. Multiple completely independent instances of a particular named pipe object can be created, each connecting the pipe server to exactly one client. A pipe instance persists only as long as its server and client processes keep a handle referencing it.

Communication between the server and client via a pipe instance may be either stream-oriented or message-oriented.

1850 questions
0
votes
0 answers

Reading endless XML fragments from Linux FIFO file using XmlReader and Reactive

I am trying to read endless XML fragments come from FIFO, and convert it to IObservable by using XmlReader on Linux. My sample code below works on .NET Core 2. But XmlReader.ReadToFollowing method does not return "false" (blocked), even if all…
idubnori
  • 997
  • 9
  • 21
0
votes
1 answer

Node.js: devided stdout using SPAWN with exe program

I wrote some C++ program which is waiting for 103 data strings and response on the output with 9 strings. I would like to send data from the node app and receive the data from the output. Unfortunately I found that the output data, that I display in…
mayilook
  • 7
  • 1
  • 4
0
votes
2 answers

Named pipe wrapper, usage over network

I have an working implementation of how two form applications and use named-pipe-wrapper v1.5. Connection like this on server: server = new NamedPipeServer("named_pipe_test_server"); Connection like this on client: client = new…
Vdlight
  • 29
  • 1
0
votes
0 answers

in linux for named pipe does each new client connection has different buffer ? Does named pipe behave in same way under linux and windows?

For windows ==> All instances of a named pipe share the same pipe name, but each instance has its own buffers and handles, and provides a separate conduit for client/server communication. The use of instances enables multiple pipe clients to use…
AbhiK
  • 247
  • 3
  • 19
0
votes
1 answer

Regarding the scenarios of protocol usage in WCF

WCF supports various protocols like TCP, HTTP, HTTPS, Named Pipes, MSMQ. Please can you provide scenarios based on which the developer will choose an appropriate protocol when developing the WCF service project? Also, can we have more than 1…
variable
  • 8,262
  • 9
  • 95
  • 215
0
votes
1 answer

Creating Named Pipe Error

I am creating a named pipe and using a function to do so. Here is the code: HANDLE tProviderPipe(INVALID_HANDLE_VALUE); SECURITY_ATTRIBUTES tSecurityAttributes; tSecurityAttributes.nLength =…
CMouse
  • 130
  • 3
  • 19
0
votes
1 answer

what is the equivalent of kernel32.dll in ubuntu?

Hi I have developed sample application in c3 and cpp in windows environment. This application achieves Named pipes between these programs to communicate. I have [DllImport("kernel32.dll", SetLastError = true)] command in my cpp program. when i…
Niranjan Godbole
  • 2,135
  • 7
  • 43
  • 90
0
votes
1 answer

What is the best approach in inter process communication?

Hi I am going to develop application in .net. It is .net core. It is web application. I have one process running on the same machine. This is written in c programming. I want to have bidirectional communication between my .net application and…
Niranjan Godbole
  • 2,135
  • 7
  • 43
  • 90
0
votes
0 answers

Server answering client request threw pipes and tubes C

Short version : I'm trying threw a request send by a client, awsering him back the result of the expression he wanted me to find. Longer version : For this, I am firstly using mkfifo to create two named tubes : one for the server and one for…
Karl
  • 15
  • 4
0
votes
2 answers

Consume WCF Service over named pipe hosted in WPF app from Windows Service

I host a WCF Service in a WPF appilication which updates the GUI using a named pipe. In a Windows Service I consume this WCF-Service to update the GUI. I host it in my WPF app with the following code: private ServiceHost serviceHost; public…
Claudio P
  • 2,133
  • 3
  • 25
  • 45
0
votes
0 answers

Windows NamedPipe on 2012 limits the data read to 64k

I have 2 process communicating via named pipes using overlapped i/o . On Window 2012 r2 it has been observed that the the data read at the reading end of the file is limited to 64k. If the client process runs on a Windows 7 64 bit, client is able to…
sanjays
  • 11
  • 2
0
votes
1 answer

How to read and write to a fifo (named pipe) in Linux?

I'm trying to open a fifo (named pipe) file, then write to it. I can't seem to make the server see what the "client" writes to it. NOTE: I'm using terms like "client-server" for simplicity. I realize that they are actually just peers and that…
101010
  • 14,866
  • 30
  • 95
  • 172
0
votes
2 answers

Controlling readiness of file descriptors

I have a case where I have an incoming stream of complex messages which need some processing before they are passed in a simplified format to the actual handler. I'd like to use a FIFO file descriptor, with one thread filling it from one end and…
pmf
  • 7,619
  • 4
  • 47
  • 77
0
votes
2 answers

Access Docker API on Windows via Named Pipes

According to the Docker for Windows FAQ, " clients can connect to the Docker Engine through a named pipe: npipe:////./pipe/docker_engine" I have been trying to connect to the API via named pipes to no avail: public class DockerNamedPipeTest { …
Mike Cheel
  • 12,626
  • 10
  • 72
  • 101
0
votes
2 answers

Multi-threaded named pipe in a Windows service locks up clients

I have a Windows service that has multiple named pipes. Each pipe is created in a separate thread within the service. There are multiple clients sending/receiving information from these pipes. If I don't use Overlapped I/O, I get a lockup when…
JeffR
  • 765
  • 2
  • 8
  • 23