ipc

IPC between .NET and C++ applications

Are there any libraries for inter-process communication (IPC) between a .NET application and a native C++ application? ...

C+C# Interprocess Comunication: Named Pipes, Memory Mapped Files or other?

Hi, I'm playing with C dlls to hook global Windows events and the next step is sending some event data (nothing huge) to a C# application. As I want this communication to be as fast as possible, I'm analysing two options: Named Pipes and Memory Mapped Files. I know that .NET 4 brings MMF in a native way, but I have to target .NET 2, a...

Does OS X have an equivalent to /dev/shm?

Does OS X (Snow Leopard in particular) have an equivalent to (some versions of) Linux's /dev/shm , ie something where you can write to and read from a file without necessarily touching the hard drive? ...

Java C++ without JNI

My app is written in Java. There is a C++ library I need to utilize. I don't want to use JNI. 60 times a second, the C++ app needs to send the Java app 10MB of data; and the Java app needs to send the C++ app 10 MB of data. Both apps are running on the same machine; the OS is either Linux or Mac OS X. What is the most efficient way to...

IPC between python app and injected DLL

Hello stack overflow: Sometimes reader, first time poster. Background: Windows box running XP SP3, soon to be upgraded to Windows Seven (MSDNAA <3) I have an injected DLL which gets cycles by hooking a function that is called thousands of times a second. I would like to communicate/control this DLL via a python app. Basically, the ...

Python C API and data persistent in memory?

I'm considering integrating some C code into a Python system (Django), and I was considering using the Python / C API. The alternative is two separate processes with IPC, but I'm looking into direct interaction first. I'm new to Python so I'm trying to get a feel for the right direction to take. Is it possible for a call to a C initiali...

Interprocess communication

I have an API for a game, which calls methods in a C++ dll, you can write bots for the game by modifying the DLL and calling certain methods. This is fine, except I'm not a big fan of C++, so I decided to use named pipes so I can send game events down the pipe to a client program, and send commands back - then the C++ side is just a simp...

Interprocess communication between C# and C++

I'm writing a bit for a game, which has a C++ API interface (ie. methods in a Cpp dll get called by the game when events occur, the dll can call back methods in the game to trigger actions). I don't really want to write my bot in C++, I'm a fairly experience C# programmer but I have no C++ experience at all. So, the obvious solution is ...

How to choose the "Key" for inter-processes communication in Linux?

Good Day... I am doing a homework which states that I have 5 processes; a server and the rest are clients. Each process is supposed to be sparked from a different executable. I am going to implement a two-way message passing solution, but the question is not about message passing per se. Is there an elegant way to communicate the key be...

Packets down a named pipe? Single-byte buffer or pre-sized?

I want to send 'packets' of data (i.e. discrete messages) between two programs through named pipes. Given that I have to supply a buffer and a buffer size to read, and given that the read command is blocking (I believe), I either have to have a buffer size that guarantees I never get an under-run, or to know the size of the message up-fr...

How do the password revealers work?

I've seen some password revealing software. Most of them has a shooting pointer like pointer and you can just point the password text box and the software is revealing the password. But still the protected software and the revealer software are not interconnected. They are separate processes running on the same host. My queries are, ...

IPC::Open3 Fails Running Under Apache

I have a module that uses IPC::Open3 (or IPC::Open2, both exhibit this problem) to call an external binary (bogofilter in this case) and feed it some input via the child-input filehandle, then reads the result from the child-output handle. The code works fine when run in most environments. However, the main use of this module is in a web...

Looking for a library for simple protocol implementation

Hello, I need to implement a simple over-the-network interaction in C++ and I've been wondering whether there are libraries that do that already. My protocol basically sends messages and receives responses. Each message is just a set of 3-4 values of basic data types. I would like to find a library (or libraries) that can do one or more...

How to convey GPS point to Maps(iPhone GPS application) from my application

Let's assume my application has received GPS coordinates of target location from network. How to run Maps(iPhone GPS application) and convey these data to it? ...

Can someone help me figure out this class from documentation?

I have no experience with sockets and I need to implement a process that notifies a user interface of inputs from another process that takes his values from stdin. This is the class' documentation, what should the socket parameter be? It's just an int, is it a handle? I was told it doesn't play nice with boost.asio. Can you guys help me ...

Network IPC With Authentication (in Python)

I am looking for a way to connect a frontend server (running Django) with a backend server. I want to avoid inventing my own protocol on top of a socket, so my plan was to use SimpleHTTPServer + JSON or XML. However, we also require some security (authentication + encryption) for the connection, which isn't quite as simple to implement....

Named pipe is not flushing in Python

I have a named pipe created via the os.mkfifo() command. I have two different Python processes accessing this named pipe, process A is reading, and process B is writing. Process A uses the select function to determine when there is data available in the fifo/pipe. Despite the fact that process B flushes after each write call, process A's...

Redirect std*** from C++ to Java for Logging

I have a C++ application and a Java application that need to log messages in the same way. My Java application uses Apache Commons Logging, backed by a Log4j configuration. I need a single log4j configuration so I can change my logging preferences in one location. In my C++ application, I have captured all calls to printf() and fprintf(s...

Console app to communicate with a windows service

Hello, we have a windows service running and we also have a console application that we use to configure this service, we also have an option to see some log being recorded. The very ugly thing with this is that this communication is made by a text file, the console app writes to a text file and the service reads it and vice versa. Wha...

Is there a difference between RPC and IPC?

Or are they synonyms? ...