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
288
questions
156
votes
4
answers
166k
views
Example of Named Pipes
How do I write a simple--bare minimum needed for it to work--test application that illustrates how to use IPC/Named Pipes?
For example, how would one write a console application where Program 1 says "...
96
votes
4
answers
116k
views
WCF named pipe minimal example
I'm looking for minimal example of WCF Named Pipes (I expect two minimal applications, server and client, which can communicate via a named pipe.)
Microsoft has the briliant article Getting Started ...
10
votes
2
answers
5k
views
Multiple pipes in subprocess
I am trying to use Sailfish, which takes multiple fastq files as arguments, in a ruffus pipeline. I execute Sailfish using the subprocess module in python, but <() in the subprocess call does not ...
31
votes
6
answers
47k
views
How to open a Windows named pipe from Java?
On our Linux system we use named pipes for interprocess communication (a producer and a consumer).
In order to test the consumer (Java) code, I would like to implement (in Java) a dummy producer ...
52
votes
4
answers
46k
views
Python and Windows Named Pipes
What is the proper way of communicating with named pipes on Windows from Python? I've googled it, and can't find any packages that wrap this communication.
There are:
some descriptions of how to do ...
174
votes
12
answers
146k
views
IPC performance: Named Pipe vs Socket
Everyone seems to say named pipes are faster than sockets IPC. How much faster are they? I would prefer to use sockets because they can do two-way communication and are very flexible but will choose ...
166
votes
10
answers
237k
views
What are named pipes?
What are they and how do they work?
Context happens to be SQL Server
35
votes
2
answers
70k
views
Python read named PIPE
I have a named pipe in linux and i want to read it from python. The problem is that the python process 'consumes' one core (100%) continuously. My code is the following:
FIFO = '/var/run/mypipe'
os....
28
votes
1
answer
106k
views
Create Windows named pipe in C++
I am trying to create a simple communication between 2 processes in C++ (Windows) like FIFO in Linux.
This is my server:
int main()
{
HANDLE pipe = CreateFile(TEXT("\\\\.\\pipe\\Pipe"), ...
22
votes
5
answers
32k
views
Shared memory between 2 processes (applications)
I can't find any useful answer for this question, although it has been asked in a different way several times.
I want to share a memory between two processes (two different applications),
so that one ...
79
votes
6
answers
125k
views
Example of using named pipes in Linux shell (Bash)
Can someone post a simple example of using named pipes in Bash on Linux?
18
votes
3
answers
25k
views
Multithreaded NamePipeServer in C#
Hi
I want to use NamedPipeServerStream which is new from .NET 3.5 for namedpipe communication.
I want to write multi-threaded pipe server. is it handled by default or I should write code for that. my ...
69
votes
1
answer
31k
views
Why does a read-only open of a named pipe block?
I've noticed a couple of oddities when dealing with named pipes (FIFOs) under various flavors of UNIX (Linux, FreeBSD and MacOS X) using Python. The first, and perhaps most annoying is that attempts ...
46
votes
7
answers
25k
views
What is a good way to shutdown Threads blocked on NamedPipeServer#WaitForConnection?
I start my application which spawns a number of Threads, each of which creates a NamedPipeServer (.net 3.5 added managed types for Named Pipe IPC) and waits for clients to connect (Blocks). The code ...
37
votes
10
answers
323k
views
SQL Connection Error: System.Data.SqlClient.SqlException (0x80131904)
I am seeing this in several situations and it is intermittent in our web based application connecting to SQL Server 2008 R2 serve back end. Users are coming across a point 2 point connection and ...