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
2 answers

repeatedly read Ruby IO until X bytes have been read, Y seconds have elapsed, or EOF, whichever comes first

I want to forward logs from an IO pipe to an API. Ideally, there would be no more than e.g. 10 seconds of latency (so humans watching the log don't get impatient). A naive way to accomplish this would be to use IO.each_byte and send each byte to…
rcrogers
  • 2,281
  • 1
  • 17
  • 14
0
votes
2 answers

ASP.net Request Processing

I heard that when a request goes from browser(client) to IIS ,after extension filtering (aspnet_isapi.dll)several named pipe connections are established between the ISAPI DLL and the worker process(w3wp.exe). What is the name of those pipes ? will…
ASP.netBeginner
  • 203
  • 4
  • 6
0
votes
1 answer

Named PIPE (FIFO) reading content of file in C

Basically I want my client program to read data from a file (file name/path specified in the command line input) and copy that data to the FIFO and I want my server program to read from the FIFO and print every line. For example if I want to…
fredjohnson
  • 187
  • 2
  • 10
  • 18
0
votes
0 answers

Shell - Redirected namepiped tmp log file of nohup out writing junk logs

I am trying to create a logrotate script for a running nohup output ( without any line breakages - tried logrotate package in system and observed several log lines are getting missed while rotating the continuously generating log file). Here's the…
Riyas Siddikk
  • 186
  • 2
  • 11
0
votes
1 answer

What is the proper way to use strtok()?

Just to clarify, I'm a complete novice in C programming. I have a tokenize function and it isn't behaving like what I expect it to. I'm trying to read from the FIFO or named pipe that is passed by the client side, and this is the server side. The…
sam
  • 33
  • 6
0
votes
1 answer

Sending a string between two processes using named pipes

I am trying to send a string, "Hi" from Child1 to Child3 which are two sibling processes. The code runs, however i do not receive the input from Child1 in Child3. #include #include #include #include…
Chamode
  • 3
  • 3
0
votes
0 answers

FIFO Pipe input output in C

I have two C files fifoserver.c and fifoclient.c The server program creates a FIFO for reading and displays anything it receives from the named pipe to the standard output. The client program, on the other hand, is supposed to open the FIFO created…
fredjohnson
  • 187
  • 2
  • 10
  • 18
0
votes
1 answer

WCF named pipes on POS Ready 2009

We're building a touch screen kiosk application that will run on Windows POS Ready 2009. We need to ensure that the application is always running, so we've built a watchdog process that our application pings periodically, and if the watchdog…
Handleman
  • 754
  • 2
  • 10
  • 19
0
votes
1 answer

Missing data when reading from C++ named pipe in node.js

I cobbled together a simple C++ app that dumps HID keycodes from /dev/input/event[x] into a named pipe on Linux. It logs to the console fine but when I read the named pipe from my node.js app, it randomly misses data events. Relevant C++ code: int…
mr.freeze
  • 13,731
  • 5
  • 36
  • 42
0
votes
0 answers

Writer hangs using named pipes for IPC

I have two processes p0, p1 running in parallel. I'm using named pipe IPC where reader (p0) writes to the pipe and reader (p1) reads from it. Here, the reader starts before writer. The reader has to loop till the writer writes to the pipe and the…
marc
  • 949
  • 14
  • 33
0
votes
1 answer

How to know when there are maximum number of named pipe client's connections to service?

Following this sample, I can set nMaxInstances. How can I know when the number of named pipe client's connections to exceed the maximum allowed (both service and client)?
Thinh Nguyen Van
  • 113
  • 2
  • 18
0
votes
0 answers

WCF Winform freezes when opened by server

I've written a VSTO Outlook Add-In and am trying to open a form in a separate Winform app when the user pushes a button on the Add-In, passing an integer as argument. I'm using WCF Named Pipe Binding. The Add-In is the client and the Winform app is…
0
votes
2 answers

How can I link 2 processes so when one crashes make the other one crash too?

I am writing a bash program that has IPC between two proccesses (A and B) via named pipes. I am worried because if A crashes, B may be blocked indefinitely (and vice versa), because named pipes are blocking. Can I link A and B so, if A crashes,…
0
votes
0 answers

Named Pipe from DLL to EXE

I am able to create a Named Pipe in a .EXE and send data through the pipe from a .DLL loaded into a separate process through the .EXE and successfully receive and print the data. However, when I reverse the direction of the pipe, where the .EXE…
0
votes
1 answer

how to handle process output in go using named pipe

I am trying to set up a pipe from a running process in tmux, in order to handle its output line by line. I have had a look at this guide to pipe the output of a tmux session to stdout and this article about (named) pipes in go. I have been trying…
Hendrik Evert
  • 340
  • 2
  • 19