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.

Unix

On Unix and Unix-like systems a named pipe (also known as a FIFO for its behavior) is an extension to the traditional pipe concept, and is one of the methods of inter-process communication.

A traditional pipe is "unnamed" because it exists anonymously and persists only for as long as the process is running. A named pipe is system-persistent and exists beyond the life of the process and must be deleted once it is no longer being used. Processes generally attach to the named pipe (usually appearing as a file) to perform inter-process communication (IPC).

Windows

On Windows operating systems a named pipe is a named kernel object which provides duplex data transfers between two processes, a pipe server and a pipe client. Multiple completely independent instances of a particular named pipe object can be created, each connecting the pipe server to exactly one client. A pipe instance persists only as long as its server and client processes keep a handle referencing it.

Communication between the server and client via a pipe instance may be either stream-oriented or message-oriented.

1850 questions
0
votes
1 answer

ReadFile using NamedPipe blocks though using overlapped

I am using NamedPipes to communicate between different modules of our windows application. At one point it is possible that a read operation could take long time so we would like to add a timeout. I added the OVERLAPPED-flag like this: pipeHandle =…
Frank
  • 2,036
  • 1
  • 20
  • 32
0
votes
0 answers

Running ffmpeg with multiple pipes

Is there a way to let ffmpeg read from multiple buffers or multiple named pipes ? Basically I want to output the first loop to different pipes instead of .jpg files, and run the video filter command using those pipes as input. Right now enormous…
baci
  • 2,528
  • 15
  • 28
0
votes
1 answer

(Linux) Read mutliple files as a single one without having to copy the chunks to a new file first

(Linux) The problem at hand is the following: Let's suppose we have foo_1 and foo_2 being in fact 2 chunks of the foo file, such as the command: cat foo_1 foo_2 >foo I would like a system to be able to consider {foo_1 + foo_2} as a single foo file…
Zakhar
  • 29
  • 5
0
votes
1 answer

Wcf duplex communication with named pipe

We are moving from .Net remoting to WCF. We were using IPC before(because we have performances consideration) when possible. I tried to replicate the first "service" we were having on .Net remoting with WCF. Before we were having some events on the…
J4N
  • 19,480
  • 39
  • 187
  • 340
0
votes
0 answers

Vb.Net How Can I Send Video To Named Pipe?

I want to create name pipe and send all videos on my listbox to that named pipe. I can create a named pipe like this : Dim p_to_ffmpeg As NamedPipeServerStream p_to_ffmpeg = New NamedPipeServerStream("to_ffmpeg", PipeDirection.Out, 1,…
sword1st
  • 525
  • 3
  • 7
  • 21
0
votes
0 answers

Port not open inside WCF service

I have a named pipe WCF service. The service itself calls external DLL code that I have no authority over. Some parts of this code need to listen on specific HTTP ports (I can provide the IP and port used for the communication but that's all).…
Gábor
  • 9,466
  • 3
  • 65
  • 79
0
votes
0 answers

C++ Pipe Skills that makes the ReadFile and WriteFile functions available at the same time

Pipe is being used, If server call WriteFile/ReadFile, client have to call ReadFile/WriteFile for synchronize each other.I implemented it like this. Example : **COMMON : ** BOOL RecvData(DWORD &dwScore) { DWORD dwRead = 0; if(0 ==…
Bryant
  • 324
  • 2
  • 15
0
votes
0 answers

C# programs communicating by named pipes as service between 2 hosts

How can 2 C# programs communicate with each other by named pipes. If I run the program under a administrator account with elevated rights everything works. I need to run this programs as a service with the account 'Local System' but then I have no…
0
votes
2 answers

Using QLocalServer over QtService : how to set security attributes to named pipe created by QLocalServer?

I am trying to use QLocalServer in service application on win7. QLocalServer's windows implementation uses named pipes, and since winVista try to access it from GUI causes error. There was even QT bug about it, but trolls closed it without any…
Raiv
  • 5,731
  • 1
  • 33
  • 51
0
votes
1 answer

My C++ program cannot open named pipe

I am trying to run C++ application that works perfectly on Mac OS under Ubuntu. The problem is due to failure in opening a named pipe. I used mkfifo as follows: pipe_name_ = std::string("/tmp/myfifo"); if (mkfifo(pipe_name_.c_str(), 0666) < 0)…
Hamid Bazargani
  • 847
  • 1
  • 15
  • 30
0
votes
1 answer

How to send named-pipe to all connected clients (Bash)

I have a named pipe, to which I output log informations from several scripts. I need to make a TCP server, which sends these informations to connected clients. For one client solution, this worked fine: tail -f name_of_pipe | nc -lk $tcp_port Is…
Jirka RCK
  • 51
  • 1
  • 7
0
votes
2 answers

Is it possible to transfer data to SQL Server from an unconventional database

My company has a SQL Server database which they would like to populate with data from a hierarchical database (as opposed to relational). I have already written a .net application to map its schema to a relational database and have successfully done…
0
votes
2 answers

C fifo keeps blocked

I'm currently studying multithreading with C, but there is something I don't quite understand with our named pipe excersize. We are expected to do an implementation of file search system that finds files and adds to a buffer with one process and the…
BrokenFrog
  • 500
  • 1
  • 6
  • 15
0
votes
1 answer

Attempting two-way communication between Python2.7 and ASP: writing contents of named pipe to a text file not working

I'm using Python2.7, the SPARC ASP solver, and am running my code from the Ubuntu14.04 command line. I'm trying to set up two-way communication between my Python code and my ASP (answer-set-programming) code. To do this I am sending queries from…
0
votes
1 answer

Why doesn't the pipe command work for me?

Actually in my last question I was trying to use the pipe command. I am looking at an example in Process Substitution - Advanced Bash-Scripting Guide. I tried these lines: bzip2 -c < pipe > file.tar.bz2 & tar cf pipe $directory_name rm…
Ankur Agarwal
  • 23,692
  • 41
  • 137
  • 208