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
175 votes
2 answers
52k views

unix domain socket VS named pipes?

After looking at a unix named socket and i thought they were named pipes. I looked at name pipes and didnt see much of a difference. I saw they were initialized differently but thats the only thing i ...
user avatar
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 ...
user19745's user avatar
  • 3,609
166 votes
10 answers
237k views

What are named pipes?

What are they and how do they work? Context happens to be SQL Server
Brian G's user avatar
  • 54.5k
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 "...
Jordan Trainor's user avatar
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 ...
Oleg Vazhnev's user avatar
  • 23.8k
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?
Drew LeSueur's user avatar
  • 19.8k
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 ...
Jim Dennis's user avatar
  • 17.4k
60 votes
2 answers
22k views

PipeTransmissionMode.Message: How do .NET named pipes distinguish between messages?

Can somebody clarify the meaning of PipeTransmissionMode.Message in .NET? How does .NET distinguish one message passed through the pipe from another? Can I serialize an object using a ...
Art Spasky's user avatar
  • 1,685
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 ...
Ray P.'s user avatar
  • 925
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 ...
Gishu's user avatar
  • 136k
41 votes
6 answers
51k views

How slow are TCP sockets compared to named pipes on Windows for localhost IPC?

I am developing a TCP Proxy to be put in front of a TCP service that should handle between 500 and 1000 active connections from the wild Internet. The proxy is running on the same machine as the ...
vz0's user avatar
  • 32.8k
39 votes
3 answers
43k views

How to create a named pipe in node.js?

How to create a named pipe in node.js? P.S.: For now I'm creating a named pipe as follows. But I think this is not best way var mkfifoProcess = spawn('mkfifo', [fifoFilePath]); mkfifoProcess.on('...
wako's user avatar
  • 815
38 votes
8 answers
32k views

Named Pipe Server throws UnauthorizedAccessException when creating a second instance if PipeSecurity is set

I am trying to write a (elevated privilege) service that will talk to a non privileged winforms application. I was able to have two console applications (one elevated one not) talk back and forth no ...
Scott Chamberlain's user avatar
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 ...
Sean Borner's user avatar
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....
user1005633's user avatar

15 30 50 per page
1
2 3 4 5
127