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.
named-pipes
1,893
questions
1
vote
1
answer
72
views
data only written to named pipe after program quits
I am trying to write a program in Rust that writes a string to a named pipe. However, the data only shows up on the receiving end after the program quits.
Here's my code:
use termion::event::Key;
use ...
0
votes
1
answer
42
views
Coordinating error states for multiple goroutines?
I have three goroutines which depend on each other, and I am coordinating them with channels. Two of the routines are writers and one is a reader to a named pipe.
However, each of these routines could ...
0
votes
0
answers
20
views
NamedPipeClientStream stalls after the first ReadLineAsync, and stalls on the first WriteLineAsync
I chose NamedPipes over TCP because I needed two applications on the same machine to talk to each other. I wanted exceedingly simple, quick, and easy, unfortunately it has proven to be the opposite.
...
1
vote
0
answers
111
views
Nonblocking read sometimes drops data
I'm attempting to write interprocess communication for the following scenario:
A "reader" (the program I am writing) listens continuously on a fifo.
Writers appear and disappear in serial, ...
3
votes
1
answer
424
views
How to configure NamedPipes permissions when using gRPC ASP.NET Core over NamedPipes
I have a gRPC Server using ASP.Net Core running as a Windows Service. I also have a gRPC Client that is running as a limited user. If I run the gRPC Client as an admin they can communicate just fine. ...
0
votes
0
answers
42
views
Is it correct to use attributes in pipe methods?
In the following code section we have a source process that transmits information by reading elements from a tuple and writing the corresponding elements one by one on an anonynous pipe.
A second ...
2
votes
0
answers
75
views
How do I print a matrix in a window using ncurses?
My program reads through a named pipe a two-dimensional matrix that contains a maze and my objective is for it to be printed in a top window using ncurses, but it is not working.
Note: The maze is ...
0
votes
1
answer
116
views
Discard the buffer of a named pipe
I'm reading from a named pipe to communicate with other processes. Under some conditions, I need to discard the buffered input in the named pipe and then continue reading new input.
I came up with the ...
1
vote
0
answers
83
views
Unable to establish two way communications using named pipes and Protobuf in .NET
Starting from https://johnkoerner.com/csharp/IPC-in-net-core-using-protobuf/, I am trying to establish a two-way communication.
I have also seen this SO post on the subject, but still I cannot make it ...
0
votes
1
answer
160
views
'Access to the path is denied' when a NamedPipeClientStream tries to connect to a NamedPipeServerStream in a Windows service
We are implementing interprocess communications using Named Pipes.
If I use a console application for both the NamedPipeClientStream and the NamedPipeServerStream it works beautifully. But when I move ...
0
votes
0
answers
80
views
detecting named pipe reader disconnect using select.poll fails on macOS, works on Linux
I want to detect on the writer (producer) end of a named pipe, when the reader (consumer) disconnects. In particular, this should work on Linux and macOS (Windows is already requires a separate method ...
0
votes
0
answers
66
views
What is the local IP used for a named pipe connection? [duplicate]
This is NOT even close to a duplicate of named pipes connection with IP address
A Windows C++ application on a local system with multiple adapters and IP addresses that connects to a remote system ...
0
votes
1
answer
106
views
Running mpg321 through a named pipe doesn't work
I have a raspberry pi 4 running OMV. I created a named file called hasspipe and then in order to keep it running at all times a created the following script :
#!/bin/bash
while true; do
eval "...
1
vote
1
answer
329
views
My named pipe works fine after first connection but later I get System.ObjectDisposedException: Cannot access a closed pipe
For bidirectional data exchange between my C# applications I use named pipe.
App-1 is the pipe server, App-2 is the client.
When a button is clicked in App-1 the pipe_server method is executed and and ...
0
votes
0
answers
37
views
C# Change Named Pipe Access Permissions [duplicate]
I am getting an Unauthorized Access exception when I try to add security to my pipe. I gather that this needs to be defined when I create the pipe, or at least add a permission to change the pipe, but ...