ipc

Same Machine Erlang communication

I need an answer to the following question to help understand what approach I should be taking to interface with Erlang. AFAIK Erlang on a SMP UNIX box uses the multi-process approach. In this case it should do same machine IPC. Does Erlang use UNIX domain sockets for UNIX ? Does it use named-pipes for windows ? If it does not implem...

Erlang Documentation/SMP: single-node and multi-node per machine or per application, and the confusion that may follow.

I'm studying Erlang's process model at the moment. I have hit a snag in a tech report (section 3, paragraph 2) on Erlang: This explains why it in some cases can be more efficient to run several SMP VM's with one scheduler each instead on one SMP VM with several schedulers. Of course the running of several VM's require that the ap...

Persistent Qt Local Socket IPC

I'm developing an application that uses IPC between a local server and a client application. There is nothing particular to it, as it's structured like the Qt documentation and examples. The problem is that the client sends packets frequently and connecting/disconnecting from the server local socket (named pipe on NT) is very slow. So w...

Is MPI good for high-volume soft-realtime IPC ?

If I had a single server and I had two process types A(Many processes many threads) and B(one process n-threads with n-cpu's), and I wanted to send a LARGE amount of one-way messages from A to B. Is MPI a better implementation for this than a custom implementation using: Unix Domain Sockets Windows Named Pipes Shared Memory I was thi...

Can a Silverlight client talk to a C++ server?

Our company wants to transform our current user interface to a web client. We are considering to use Microsoft's Silverlight for this, but it will need to communicate with our legacy C++ server application (native C++, not C++/CLI). I am wondering whether it would be feasible to write such an IPC library by hand, our otherwise whether th...

high speed interprocess associative array

Is there library usable from c++ for sharing fairly simple data (integers,floating point numbers, strings) between cooperative processes? Must be : high-speed (SQL-based methods too slow due to parsing) able to get,set,update,delete both fixed and variable data types (e.g. int and string) ACID (atomic,consistent,isolated,durable) us...

How might i do these IPC techinques?

I remember back in the day while using C and win32 i had a number of IPC techniques. So far i haven't ran into any of them in .NET or seen them outside of C so i thought i ask how might i do these inter-process communication techniques? Shared/Global memory. Simply allocate ram that can be change by another process without any signal. ...

Inter-Process Communication Recommendation

I'm searching for a light-weight, fast and easy way to handle Inter Process Communication between some programs on a Linux machine. Currently, I'm thinking Named Pipe, because it's provided by the OS itself. Are there any caveats about the performance or usability? Would Shared Memory be better? I don't think I need a super-complex F...

communication between c++ and c# through pipe

Hi everyone I want to send data from a c# application to a c++ application through a pipe. Here is what I've done: this is the c++ client: #include "stdafx.h" #include <windows.h> #include <stdio.h> int _tmain(int argc, _TCHAR* argv[]) { HANDLE hFile; BOOL flg; DWORD dwWrite; char szPipeUpdate[200]; hFile = CreateFile(L"\...

way to implement IPC

what is the preferred way to implement IPC over windows ? i know of several like : named pipe, shared memory, semaphors ? , maybe COM (though i'm not sure how)... i wanted to know what's considered the most robust,fast,least error prone and easy to maintain/understand. ...

Passing information between two seperate programs

I want to pass a value of an input variable in my program lets say#1 to another program #2 and i want #2 to print the data it got to screen, both are needed to be written in c++. The this will be on Linux. ...

Is named FIFO secrue to prevent normal user from seeing sensitive data?

If I have some sensitive data to transfer between two processes, I can create a named FIFO in /tmp and delete it after use. I want to know if this method secure? How easy will it be to break the FIFO? I know there are several ways to perform IPC(inter-processes communication), but IMHO, pipe is not ideal since it sometimes left buffered...

drawing in other processes windows on macosx?

Is it possible to draw in other processes windows on MacOSX using Cocoa or other libraries? If yes, are there any samples? Alternatively a quick summary of what i'd have to do? (I need to support at least OSX 10.5) Shared memory is of course a possible solution, but i'd prefer direct drawing to avoid synchronization overhead and code ...

Interprocess Communication / Broadcast

I have a Windows Service (implemented in C#) and I have something like a service control manager. I would like to trace messages from the service to the service control manager (which is a window forms application), but I'm not sure what's the best way for doing this. The service should broadcast the messages to all clients who are listn...

Is it possible to allocate a 2D array as shared memory with IPC?

I want to allocate shared memory as a 2D array using IPC. I tried the following: id_shmem = shmget(ipc_key, sizeof(int)*rows*columns, IPC_CREAT|0666); matrix = (int **)shmat(id_shmem, 0, 0); The problem is that whenever I try to write something into the matrix, I get a segment fault. ...

IPC on windows with callback semantics?

I'd like to do some simple synchronization across two processes under Windows. I'd like process A to send an event and have process B handle this event via a callback. That is, process B will not be stuck waiting while the event is pending. Instead, a routine will be called when the event is sent. The only way I've thought of so far ...

c# forms communication

I have a C# application which consists of 3 forms: 1: Battleship Game GUI 2: Network GUI (does client/server connections) 3: Chat GUI Form 1 is loaded first. When the user selects setup network, Form 2 is displayed. Chats are displayed when the user opts to send a chat or when a chat is received. I would like Form 2 to process all...

What's the fastest IPC method for a .NET Program?

Named Pipes ? XML-RPC ? Standard Input-Output ? Web Services ? I would not use unsafe stuff like Shared Memory and similar ...

Shared memory between 2 processes (applications)

Hi, I cant find any useful answer for this question, although it has been asked in a different way several times I want to share a memory between 2 processes (2 different applications). so that one of them can write to that memory and the other can read. is this possible in .NET? how? Thanks ...

How to share data between python processes without writing to disk.

Helllo, I would like to share small amounts of data (< 1K) between python and processes. The data is physical pc/104 IO data which changes rapidly and often (24x7x365). There will be a single "server" writing the data and multiple clients reading portions of it. The system this will run on uses flash memory (CF card) rather than a hard d...