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

Named Pipe Path Different Between Python 2.x and Python 3.x?

I have a python 2.7 script that accesses a named pipe server through kernel32. Someone tried to reuse the script in python 3.5, with which I am unfamiliar. The problem they are having, is that they are getting the error ERROR_PATH_NOT_FOUND when…
BigBobby
  • 423
  • 1
  • 3
  • 17
0
votes
0 answers

Connecting .NET named pipes over a network

I have used named pipes to communicate between processes locally and now I am trying to connect over a network to another computer. As far as I understood, the only thing I need to change is the NamedPipeClientStream constructor…
Leander Behr
  • 153
  • 1
  • 2
  • 10
0
votes
2 answers

How to send wstring buffer to stdin of a child process?

I'm having trouble writing a WString to the STDIN of a child process. If I have only acii character string (eg: @WSX3edc), the code works fine, but if it contains a non ascii character (eg: @WSX3edcß) it fails. The child process is 7zr.exe (7Zip cmd…
gkns
  • 697
  • 2
  • 12
  • 32
0
votes
1 answer

WCF net.pipe aborts when receiving response

This has been resolved This is a contract I'm unable to get from a service call: [DataContract] public class myInitializationData : ClientInitializationData { [DataMember] public Dictionary CultureNameLookup { get; set;…
with
  • 306
  • 3
  • 15
0
votes
1 answer

How should QLocalSocket/QDataStream be read to avoid deadlocks?

How should QLocalSocket/QDataStream be read? I have a program that communicates with another via named pipes using QLocalSocket and QDataStream. The recieveMessage() slot below is connected to the QLocalSocket's readyRead() signal. void…
sebf
  • 2,831
  • 5
  • 32
  • 50
0
votes
0 answers

Read from BaseStream after creating a StreamReader on a NamedPipeServerStream?

I create a named pipe like so: var server = new NamedPipeServerStream(pipename, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous); Then, after a client connects, I create a StreamReader: namedPipeReader = new…
sebf
  • 2,831
  • 5
  • 32
  • 50
0
votes
0 answers

Overbyte NamedPipes; Send msg on a different thread

I'm fairly new to IPC(interprocess communication). Doing my research, I decided on the Named pipes. My application consists of 2 parts: a monitoring app, and a UI dashboard. The dashboard receives updates from the monitor constantly and shows stats,…
0
votes
1 answer

Usage of ReadFile(Ex) with BindIoCompletionCallback

I'm trying to write an IPC with named pipe. The server code : http://pastebin.com/tHyAv0e0 The client code : http://pastebin.com/Qd0yGBca My question is about the server. Following a SO user, i'm trying to use BindIoCompletionCallback() in the…
vtorri
  • 166
  • 13
0
votes
1 answer

Cannot reopen FIFO when the same process uses both ends of the FIFO

When using a FIFO on a single process, it looks like after both ends have been opened and one is then closed, it is not possible to reuse the FIFO. Any attempt to reopen the closed end fails or the returned file descriptor is useless. Is it possible…
Guett31
  • 258
  • 2
  • 15
0
votes
1 answer

Reading and writng with named pipes C

I'm writing a program that should run indefinitely maintaining the value of a variable. Two other programs could change the value of the variable. I use named pipes to receive and send the variable value to external programs. Here is my code for…
0
votes
0 answers

nodejs can't communicate with python via named pipes in my mac pro

python can communiate with each other via named pipes in my mac .but when i use nodejs to communicate with python ,it get wrong. My python code is: import socket,os s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) try: …
0
votes
1 answer

When creating a named pipe, does the PIPE_NOWAIT mode ever make a difference, if FILE_FLAG_OVERLAPPED is also specified?

I know the differences between PIPE_WAIT and PIPE_NOWAIT modes when a named pipe works synchronously. The documentation is very clear about it. However, it does not say anything about those differences when a named pipe works asynchronously (with…
Guett31
  • 258
  • 2
  • 15
0
votes
0 answers

Can nNumberOfBytesToWrite ever be different from lpNumberOfBytesWritten or 0 when using WriteFile function on a Named pipe?

According to the documentation the answer is Yes. If the named pipe is used with PIPE_NOWAIT and PIPE_TYPE_BYTE, WriteFile should write the bytes to the buffer until it fills up or all the requested bytes are written. A WriteFile operation is…
Guett31
  • 258
  • 2
  • 15
0
votes
1 answer

Windows crash in ChangeServiceConfig2

I'm having a problem with ChangeServiceConfig2(...SERVICE_CONFIG_TRIGGER_INFO...) Relevant code: WCHAR test[] = L"TEST12"; SERVICE_TRIGGER_SPECIFIC_DATA_ITEM stdata { SERVICE_TRIGGER_DATA_TYPE_STRING, …
MSalters
  • 173,980
  • 10
  • 155
  • 350
0
votes
1 answer

Remote connections for SQL Server 2016 from Visual Studio 2015 error could not open a connection

I just installed SQL Server 2016 on my home server. I'm trying to connect to it from Visual Studio 2015 from my desktop PC, and repeatedly getting the well-known error: An error occurred while attempting to reverse engineer elements of type …
Raghu Ariga
  • 1,059
  • 1
  • 19
  • 28
1 2 3
99
100