Skip to main content

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 vote
1 answer
21 views

Named pipe is closing on its own after reading one message

I am trying to run a named pipe server on a windows service for an ASP.net web API to communicate with. I have got the ASP.net to be able to send a message but immediately after reading from the pipe ...
ShockingRotom's user avatar
1 vote
1 answer
45 views

boost::process::async_pipe or pipe for inter process communication

I need to do inter process messaging with named pipes. I know async_pipe can be used for named pipe's. But when i try to use async_pipe my program just stuck in io_context::run() on read Why is ...
Kliment Nechaev's user avatar
1 vote
0 answers
68 views

Full duplex named pipes on Windows

I would like to implement full duplex named pipe communications on Windows. The server needs to be in C++, and needs to be able to connect to multiple clients simultaneously. The client needs to be ...
Lorne's user avatar
  • 89
0 votes
1 answer
37 views

Can't communicate between different levels of admin privileges using named pipes in .NET 8

I have a program which is composed of a Windows Service and a GUI. The windows service runs under a local system account, and the GUI runs on a user account and receives information about the service ...
haxonek's user avatar
  • 181
3 votes
1 answer
58 views

Connect to admin named pipe from regular client

I'm trying to have a duplex named pipe in Windows using Golang and https://pkg.go.dev/github.com/Microsoft/go-winio package. The client runs as a regular process but the server runs elevated (the ...
David Fernández's user avatar
0 votes
1 answer
45 views

.NET NamedPipes client/server troubles. Server can't reply back to client - "Cannot access closed pipe"

I'm trying to create a basic client/server message exchange between two .NET applications. I want the client to connect to the server and then send a message. The server will then receive this message,...
Toby's user avatar
  • 671
1 vote
1 answer
51 views

NamedPipeClientStream and System.UnauthorizedAccessException

I'm trying to use named pipes to let a Windows service and an application share messages. SERVICE var ps = new PipeSecurity(); //ps.SetAccessRule(new PipeAccessRule("Everyone", ...
Marco's user avatar
  • 57.4k
1 vote
1 answer
69 views

Windows Named pipe communication between C# .NET Windows Service and C++ client freezes

I need some help with Windows named pipes please. Aim: run silent .msi installers from C++ app running WITHOUT admin permissions Idea: bundle the .msi with another product as an installer daemon ...
Haj's user avatar
  • 11
3 votes
1 answer
140 views

Why is a FIFO pipe on macOS ~8x slower than an anonymous pipe?

On an M1 Max, I have created a FIFO named pipe with mkfifo and am testing write/read performance with a simple C program and pv. The program writes 65536 bytes at a time to stdout. When doing ./writer ...
edaniels's user avatar
  • 778
1 vote
0 answers
48 views

Bash − Using one bc instance in a named pipe [duplicate]

Context: I have a script which makes multiple calls to bc to set some values, ie: many foo="$(echo '1/3' | /usr/bin/bc -q)" What I want to achieve: do not call bc every times, but keep one ...
Stéphane's user avatar
  • 496
0 votes
0 answers
69 views

.NET MAUI Named Pipe Client Stuck on ConnectAsync on MacOS

I'm trying to implement named pipes in .NET MAUI (.NET 8) on Windows and MacOS. Everything works fine when testing on Windows, but when I test it on MacOS, the client gets stuck on connecting. Pipe ...
Jasper's user avatar
  • 1
0 votes
1 answer
33 views

Why does tee make a different in named fifo?

so the cpp code is trying to solve the problem on codeforces using some random numbers and BSGS algorithm. I had issue when debugging this problem because it talks to another program through STDIN and ...
Liu Weibo's user avatar
  • 456
0 votes
1 answer
46 views

C# WCF Named Pipe - return progress to GUI

I use WCF Service for Copying files in the local environment. The WPF GUI is used to call methods from WCF Service using some buttons. Type of communication I use is Named Pipes. I have problem with &...
kalview's user avatar
  • 317
0 votes
1 answer
77 views

WCF Service hosted locally using Windows Service - named pipes communication with GUI - "The pipe has been ended. (109, 0x6d)."

I have read the documentation on the Microsoft Page about inter process communication on Windows platform so I started doing some demo projects to test how does it work etc. Because all I want to do ...
kalview's user avatar
  • 317
0 votes
0 answers
57 views

Named pipe connection over network error (The username or password is incorrect)

When running a solution where one machine runs a server and a second machine runs a client connecting via named pipes I'm having a strange issue. If both machines run the same Microsoft account, the ...
João Paul's user avatar
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 ...
Kolja's user avatar
  • 2,729
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 ...
poundifdef's user avatar
  • 19.3k
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. ...
Zoop's user avatar
  • 1,015
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, ...
Christian Chapman's user avatar
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. ...
Ed_S's user avatar
  • 120
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 ...
athant4's user avatar
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 ...
João Simões's user avatar
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 ...
M0M0's user avatar
  • 218
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 ...
Franco Tiveron's user avatar
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 ...
Dabblernl's user avatar
  • 16k
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 ...
TheDiveO's user avatar
  • 2,491
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 ...
user3161924's user avatar
  • 2,053
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 "...
Veoxer's user avatar
  • 412
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 ...
Mdarende's user avatar
  • 661
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 ...
Furbs's user avatar
  • 71

15 30 50 per page
1
2 3 4 5
64