All Questions
Tagged with named-pipes .net
186
questions
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,...
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 ...
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 ...
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
0
answers
22
views
UnauthorizedAccessException when creating second NamedPipeServerStream in a process with a PipeSecurity argument
In a project, I am using the fantastic Named Pipes library: https://github.com/IfatChitin/Named-Pipes
It is solid and works like a charm for projects running under the same security context. However, ...
0
votes
1
answer
127
views
Recreating an UTF-8 StreamWriter on an open NamedPipeClientStream causes extra BOM characters on the server
I have a NamedPipeServerStream that stays open, and a NamedPipeClientStream that stays open. The NamedPipeServerStream has an UTF-8 StreamReader that stays open. The NamedPipeClientStream has an UTF-8 ...
0
votes
0
answers
178
views
Is my client connection code using NamedPipeServerStream at risk of memory leaks or named pipes recovery issues?
I have written a C# .NET code that utilizes NamedPipeServerStream to send and receive data. My goal is to ensure that when a client disconnects, the server waits and then establishes a new connection ...
1
vote
1
answer
260
views
Asynchronous operations on a System.IO.Pipes named pipe
I have implemented a simple NamedPipeServerStream / NamedPipeClientStream solution, where I want the client to be able to send requests, but also receive responses, and I never know which order they ...
0
votes
2
answers
82
views
Multiple NamedPipeServerStreams in same process
I have made a first implementation of a process that keeps two different NamedPipeServerStreams running and receiving messages on both. I'm wondering if there is a way to react on a task directly when ...
0
votes
1
answer
205
views
Why NamedPipes are not working with 64bit?
I am working on a C# project that uses NamedPipes for interprocess communication to exchange data between the main app and a Windows service.
Creating and working with the pipe was implemented with ...
0
votes
0
answers
174
views
Reading FFmpeg bytes from named pipes, extracted NAL units are bad/corrupted
I'm trying to read .mp4 file wtih ffmpeg and read bytes from the named pipe which I then want to package to RTP stream and send those packets over WebRTC.
What I learned is that H264 video consists of ...
1
vote
0
answers
149
views
.NET Pipe deadlock or pipe broken
I'm trying to do some logic according to this article, so many server pipes with many clients.
https://learn.microsoft.com/en-us/dotnet/standard/io/how-to-use-named-pipes-for-network-interprocess-...
1
vote
0
answers
399
views
The C# app hangs up when reading from and writing to a NamedPipeServerStream *from the same thread*
For the past month or so I've been debugging an apparent deadlock caused by a thread reading from and writing to a NamedPipeServerStream, like this:
NamedPipeServerStream pipestream = new ...
0
votes
0
answers
96
views
IPC using named Pipes fails to connect on second run
I want to achieve inter process communication between the UI and background process.
From the UI thread ,I want to start an operation in a background process. The background process then will send ...
0
votes
1
answer
187
views
NamedPipe goes missing when connecting multiple times
I have 2 applications that talk to each other over a named pipe (using H.Pipes). Before I open the pipe to send data, I do a check if the pipe exists with:
var pipes = Directory.GetFiles(@"\\.\...