named-pipes

Is there a cross platform way of handling named pipes in Java or should I write my own?

I'm writing a bit of JNI code where a DLL running in the process space of various processes on the system needs to talk back to a java process. I've decided to use named pipes to do this (for various reasons) after weighing up shared mem/sockets/rpc etc. My question is, is there a nice way of handling named pipes in Java or should I wr...

NamedPipeClientStream StreamReader problem in C++

When reading from a NamedPipes server using the .net NamedPipeClientStream class I can only get the data on the first read in C++, every time it's just an empty string. In c# it works every time. pipeClient = gcnew NamedPipeClientStream(".", "Server_OUT", PipeDirection::In); try { pipeClient->Connect(); } catch(TimeoutException^ e)...

Named Pipes IPC

I am trying to create a pipe to use between two processes to send information. The two process are not related and implementation with signals has a problem where if the process that recieves the signal is doing a sys command it intreprets the signal as an intrupt. I am new to perl so any help trying to have two processes use pipes woul...

Why are named pipes local?

I remember using Named Pipes for communicating between 2 machines (back in Windows NT). How come now I read that Named Pipes are only for Inter Process Communication in the SAME machine? (in Vista and Windows 7) ...

Best way to keep a pipe open after a remote close

Using this tutorial i came up with the code below. My client is ran frequently. Its activated via clicks and possibly can be launched twice at the same moment in certain circumstance. I am worried one client may close while another client opens which causes the pipe to be closed in that slim few milliseconds. Whats the best way to keep t...

Remote Named Pipes connection refused on XP

I've got a simple design I'm trying to implement. A single C++ based server app creates a write-only named pipe. Multiple clients (C++ or C#) connect as read-only and listen for status messages. I have this working for local processes, but I am unable to connect a client on a different host to the server. The server is running on XP S...

Must i abort this thread? Waiting for namedpipes. How do i do this properly?

I have another question about this same code and keeping the pipe open after the client closes it But here i have a problem gracefully terminating my app. My main code is below. There are 2 problems. 1) I am using Thread.Abort and 2) This application doesnt actually end. I can set a breakpoint and see abort is called and step to the end...

Alternative to pipeStream.WaitForConnection, a way to pass messages?

My app is being launched via cmd line and if another instance exist i send it the cmd line data via pipes. I am using NamedPipeServerStream ATM. The problem is when i listen for incoming data i may not get it. and ATM because of WaitForConnection is blocking i have no way of terminating my app. Alternatively i am thinking about not send...

Named pipes between VC++ 6.0 and C# visual studio 2008.

hi, I am doing a project in which i am using VC++ and C# both. VC++ is for hardware interface (no other go, i must use VC++ only) and the application side i am using C# (micro soft visual studio 2008). For both the programs to communicate to each other i am using named pipes (this is also must). I am able to communicate between C# and...

Named pipe C# using .NET 3.5 features like NamedPipeClientStream

Are named pipes in Windows (and other OS as well process wide)? I have this weird scenario: I wrote a program lets say "Controller.exe" which spawns a bunch of "Workers.exe", then Controller.exe creates a named pipe called "Pipe0" ... through "PipeN". Then Workers.exe (who are started with a command line arg as the name of the pipe) g...

2 Questions about named pipes

Hi i have a couple of question about using named pipes. Firstly, when trying to setup a pipe server, i have noticed that if i use the code below.. at the end of the first client connect the server becomes unavailable UNLESS i wrap the whole thing in a while (true) block. Have i done this correct? or is each server only supposed to be ac...

Sockets vs named pipes for local IPC on Windows?

Are there any reasons for favoring named pipes over sockets for local IPC (both using win-api), effectiveness-wize, resource-wize or otherwise, since both behave very much alike (and likely to be abstracted by a similiar interface anyway), in an application that is likely to already use sockets for network purposes anyway? I can name at...

Problem with Named Pipes between C# and Python

I'm trying to create a two-way communication channel between two programs (one in Python and another in C#) When I create a named pipe between two C# programs or two Python programs, everything is OK, but when I try to (for example) connect to the C# server from Python code, it does not work: C# code: NamedPipeServerStream server = ne...

mono, unix sockets

Hi! Does anyone know an example of c# (mono) application that creates unix domain socket and listens to it async way? ...

Windows Named Pipe Problem

I'm writing a driver that communicates with a userland application through a named pipe. The userland application creates the named pipe by calling CreateNamedPipe() and then passes the pipe name to the driver by invoking an IOCTL. The driver then opens the pipe by calling ZwCreateFile(). The userland application then hits a loop that r...

Using Windows named pipes from inside activeX control - Possible?

Hi All, I am starting to design a DMO to run from inside a windows media player activeX control in Internet Explorer. is there any reason why using windows named pipes from inside the DMO wouldn't work? user permissions/privilages/ kernel mode stuff? Thanks :) Roey ...

controlling the name of a named pipe when hosting WCF net.pipe binding in IIS

I have a service accessible via http and net.pipe. It is being hosted in IIS 7 (Server 2008). I may be hosting different instances of this service for several customers on the same machine and hence the HTTP is setup with virtual hostnames etc. This is all working fine. I thought I would do similar for the net named pipe binding - using...

Question about configuring sql server 2005.

When configuring a SQL 2005 Server in preparation for connectivity to a SharePoint Server 2007 farm, Microsoft recommends that Local and Remote Connections use both TCP/IP and named pipes. Where is this setting found? ...

windows: is it possible to dump (direct) a text file into a named pipe

I have a setup where a program gets its input like so: 1) user enters a command in a command prompt 2) the text from the command prompt is written to a named pipe 3) a process on the other side of the pipe is reading the input parse and execute the command I would like to have the ability to store a set of commands in a text file an...

Performance of sockets vs pipes

I have a Java-program which communicates with a C++ program using a socket on localhost. Can I expect to gain any performance (either latency, bandwidth, or both) by moving to use a native OS pipe? I'm primarily interested in Windows at the moment, but any insight related to Unix/Linux/OSX is welcome as well. EDIT: Clarification: both ...