named-pipes

Tailing a binary file in Erlang adds mysterious bit-string

I want to run tail on a named pipe to facilitate some binary logfile processing. The problem is that mysterious data is being added to the beginning of the stream. I run my tests by starting the erlang process with the opened port (open_port) and then I use another shell to cat the bin into the named pipe. Here is a simple function for ...

QLocalSocket and QLocalServer in browser plugins

Hi, I have a simple doubt. Does the ipc mechanism in qt work when we use it for developing browser plugins? The reason i ask this is that I can easily get the QLocalSocket and QLocalServer communication to work in a qt application, but when i write a similar piece of code in a browser plugin dll i see that the server does not accept a n...

IPC in qt browser plugins

Hi, I have a simple doubt. Does the ipc mechanism in qt work when we use it for developing browser plugins? The reason i ask this is that I can easily get the QLocalSocket and QLocalServer communication to work in a qt application, but when i write a similar piece of code in a browser plugin dll i see that the server does not accept a n...

Named pipe stalls threads?

I am attempting to push updates into a process via a named pipe, but in doing so my process loop now seams to stall on while ((line = sr.ReadLine()) != null). I'm a little mystified as to what might be wrong as this is my first foray into named pipes. void RefreshThread() { using (NamedPipeServerStream pipeStream = new NamedPipeServ...

Server-side Javascript in production fails to open connection to a named instance of SQL2008

I've got a production site that has been working for years with a SQL Server 2000 default instance on server named MDWDATA. TCP port 1433 and Named Pipes are enabled there. My goal is to get this web app working with a copy of the database upgraded to SQL Server 2008. I've installed SQL2008 with SP1 on a server called DEVMOJITO and teste...

Best way to communicate from a Java-based Eclipse plug-in to a standalone C program

I am writing an eclipse plug-in which will operate in a mode in which it will need to send "commands" to another C program. The C program has a built-in poller which checks for events. The plug-in will "push" commands out but doesn't need anything in response. What's the easiest way to set up a communication mechanism between these two? ...

How can I pipe two Perl CORE::system commands in a cross-platform way?

I'm writing a System::Wrapper module to abstract away from CORE::system and the qx operator. I have a serial method that attempts to connect command1's output to command2's input. I've made some progress using named pipes, but POSIX::mkfifo is not cross-platform. Here's part of what I have so far (the run method at the bottom basically ...

How do you send a named pipe string from umnanaged to managed code space?

I appear to have a named pipes 101 issue. I have a very simple set up to connect a simplex named pipe transmitting from a C++ unmanaged app to a C# managed app. The pipe connects, but I cannot send a "message" through the pipe unless I close the handle which appears to flush the buffer and pass the message through. It's like the message ...

named pipes in java

Hi all, I have written a java app which manipultes a file which is created by another program. i want my program to work in real time, in order to do so, i need to read from a file while the other program is writing it. the simple solution is to keep reading from the file even when EOF has been reached in an infinite loop, but thats ver...

How to do a non-waiting write on a named pipe (c#) ?

Hello, I'm using .net 3.5 named pipes and my server side is : serverPipeStream = new NamedPipeServerStream("myPipe", PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous); When I write some data with, say, BinaryWriter, the write() call itself doesn't return until the client side has called a read() on its Name...

Is there any tutorial on connecting .NET 4 Pipeline with Pipeline from some C\C++ programm?

Is there any tutorial on connecting .NET 4 Pipeline with Pipeline from some C\C++ programm? For example how to get data from VLC Pipeline output ... I mean VLC docs say that there command line args can eat name of pipe like YUV video output --yuv-file=<string> How to give such name to pipe created in your .Net programm so to be...

Is it possible to Create a Named Pipe on a remote machine (by IP address)?

Is it possible to Create a Named Pipe on a remote machine (by IP address)? ...

How to turn stream from Named Pipe into Socket Stream? (in C++ on Windows)

How to turn stream from Named Pipe into Socket Stream? (in on Windows) (Share all new data in pipe stream on socket)? ...

How to create named pipe acsessible Only on your machin? (VS08 C++)

Hello, I have created a program that write video stream to a named pipe on windows, using Visual Studio C++ 2008 . how to be sequre that no one exept programms on this computer can acsess this pipe? npipe = CreateNamedPipe("\\\\.\\pipe\\TestChannel", PIPE_ACCESS_DUPLEX, PIPE_TYPE_MESSAGE | PIPE_WAIT, PIPE_UNLIMITED_INSTANCES , 1024...

Why to use local pipes instead of sockets for programs communication inside one computer?

Why to use local pipes instead of sockets for programs communication inside one computer? Has Any one FRESH stats on who is faster and how nmuch, what is more sequre or less? I have found a wary old and strange and scary one... http://home.iae.nl/users/mhx/pipes&amp;socks.html There is a noticeable difference in performance between soc...

WCF Named Pipe IPC

I have been trying to get up to speed on Named Pipes this week. The task I am trying to solve with them is that I have an existing windows service that is acting as a device driver that funnels data from an external device into a database. Now I have to modify this service and add an optional user front end (on the same machine, using ...

Best way to convert Stream (of unknown length) to byte array, in .NET?

Hello, I have the following code to read data from a Stream (in this case, from a named pipe) and into a byte array: // NPSS is an instance of NamedPipeServerStream int BytesRead; byte[] StreamBuffer = new byte[BUFFER_SIZE]; // size defined elsewhere (less than total possible message size, though) MemoryStream MessageStream = new Memor...

.NET NamedPipeServerStream problem - consecutive Reads return the same data

I'm having a problem with NamedPipeServerStream - when my code reads data it's just repeating the output of the last Read without grabbing the new data. Here's the smallest server code example that exhibits this behaviour: using System; using System.IO; using System.IO.Pipes; using System.Text; namespace ConsoleApplication1 { clas...

How to detect client connection to a named pipe server using overlapped I/O?

I was studying the MSDN examples of using named pipes: Named pipe server using overlapped I/O Named pipe client The server easily detects when the client is disconnected and creates a instance of a named pipe. But I cannot figure out how the server knows that a client is connected to a pipe before any data from client is sent. Can s...

Accessing a named pipe endpoint in a windows service from IE using a COM enabled .NET client dll

I have a WCF service hosted in a windows service. This WCF service is only going to be used on the local machine so I have chosen named pipes for endpoint. However when I try to connect to WCF service from the client instantiated by JavaScript in IE, endpoint is not found. However if I stop the windows service and run the executable (it...