ipc

Calling a Python program from PHP.

I've got a version of the A* algorithm that builds a graph of the UK road and cycle network in Python lists. It takes about 30 seconds to initialise, but once done can very quickly find the shortest route between any two vertices. The start and finish vertex ids are provided by PHP. I'm trying to work out the best way of communicating b...

Is it possible to make something like OSX Services for linux, by leveraging pipes ?

I was reading the concept of OSX Services and it seemed very cool to me to have utilities like Dictionary, highlight-text-and-open-in-browser and a million other services that provide functionality based on what the user is currently doing. I have heard it mention that this mechanism is more similar to how pipes work in *nix, rather tha...

how can I notify a running activity from a broadcast receiver?

Hi, I have an activity, it needs to response to a broadcast event. Since an activity can not be a broadcast receiver at the same time, I made a broadcast receiver. My question is: how can I notify the activity from the broadcast receiver? I believe this is a common situation, so is there a design pattern for this? Thanks. BR, Henry ...

IPC (.NET): Which user rights would I need to create an IPC channel?

I have a program here (with access to the source code, no problem there) that I need to install on many customers PCs. All of them still run under good old XP (SP3), but on a few (very few) of them I can't start the application, because when I try opening the IPC channel (I need that for a few service functions) I get an "Access denied"...

Which file should I pass as pathname argument of ftok()

It is mentioned in ftok() manual key_t ftok(const char *pathname, int proj_id); The ftok() function uses the identity of the file named by the given pathname (which must refer to an existing, accessible file) ... I am confused about const char *pathname. What would be the best practice for it? On my current system I can pass "...

peer to multi-peer interprocess communication

What is the best method for peer to multi-peer interprocess communication in windows. ( One application will send interrupts to many listeners ) One method comes to my mind is to use SendMessage with the HWND_BROADCAST parameter. What else I can do? ...

.NET assembly not creating as backgrouond process using System.Process

Hello, I am trying to launch background processes using System.Diagnostic.Process API . It launches every process e.g notepad.exe, all native processes and all windows form base processes. But this unable to launch pure managed GUI less assemblies. Task Manager not showing those assemblies listed in its list as seperate process. Niether...

What would you consider a decent spec for a developer desktop?

What would people assume is a good development pc spec? I'm not looking for how cheap can I get away nor for what would be the ultimate machine. We speaking java server side development and Ajax web development. Some DB work. ...

C: Multiple forks

Hi I need to use shared memory and fork to do this: Multipling random 512x512 matrixes using 4 processes and shared memory. I know how to fork one child but How can I fork 4 processes that do 1/4 of work? Thanks ...

share queue between parent and child process in c++

I know there are many way to handle inter-communication between two processes, but I'm still a bit confused how to deal with it. Is it possible to share queue (from standard library) between two processes in efficient way? Thanks ...

Filehandle for Output from System Command in Perl

Is there a filehandle/handle for the output of a system command I execute in Perl? ...

interprocess communication with and without .net

I'm developing a .net WPF application, and I would like to put in a two way IPC mechanism. I realize named pipes and remoting are options, however I would like to make the mechanism not dependent on .NET for non-.NET applications to communicate with my application. What does SO recommend as a solution to this? WM_COPYDATA? ...

IPC mono <-> .NET?

I have two processes running on the same windows machine. One is using mono, the other is using MS .NET. What is the best solution for inter process communication? ...

Can I share cuda GPU device memory between host processes?

Is it possible to have two or more linux host processes that can access the same device memory? I have two processes streaming high data rate between them and I don't want to bring the data back out of the GPU to the host in process A just to pass it to process B who will memcpy h2d back into the GPU. Combining the multiple processes in...

C# Worker process garden framework

Here is the situation, I have a worker process that is automating Internet Explorer (via AxSHDocVw). This worker process is launched via a custom Windows service on the OS shell. I need to run somewhere between 4-8 of these worker processes to handle each batch of work in timely manner. I really don't want to have to tear down and recrea...

MSN/Live Messenger Song with media player

How do i programically tell MSN/Live Messenger what song i am playing? I found this but that seems to be more about protocol and i just want to know how it works on a IPC level. ...

Uses to DDE and Alternatives?

I tried using DDE back in the win98 days around the time i switched to XP. I couldnt quiet get it to work nor know exactly what it can or should be used for. I want to know what alternatives could i use? Back then i wanted to make 3 apps which can communicate to the others no matter what order they were opened. I ended up having them al...

Multiple simultaneous .NET IPC servers / find the right one by process ID?

I have a database client application. Some people will run multiple instances (i.e. processes) of it to connect to different databases simultaneously. I'd like to have this app accept a custom URI scheme for simple commands such as 'open record 123'. The URI contains the database it pertains to, so, depend on the contents of the URL, one...

Multiple client IPC in .Net

I have a server process bound to a port that receives network packets at essentially random intervals. When a packet is received it is parsed and an object representing this packet's data is created. I would like to be able to 'push' this data object to any number, 0..n, client processes running on the same machine. The clients will alwa...

QLocalServer with multiple clients -- proper handling

I'm trying to make IPC work between one server to accept requests from multiple clients with Qt 4.6. All is working, except that the underlying named pipes are not being closed, making Qt to emit the maximum handle reached message (62). Since I want to accept several client connections, I handle newConnections to the QLocalServer class ...