ipc

How do I terminate a thread that is waiting for a semaphore operation

I am writing a program that uses shared memory and semaphores for ipc. There is one main server process that creates the shared memory and semaphores. Any number of client processes can attach to the shared memory and read and write to it when allowed. The semaphores provide the blocking mechanism to control reads and writes. Everything ...

UNIX/Linux IPC : Reading from a pipe. How to know length of data at runtime?

I have a child process which generates some output of variable length and then sends it to the parent using a half duplex pipe. In the parent, how do I use the read() function? Since the data can be of different length each time, how can I at run time know the size of the data to do any malloc() for a buffer? Can the fstat() function be ...

CreateRemoteThread, LoadLibrary, and PostThreadMessage. What's the proper IPC method?

Alright, I'm injecting some code into another process using the CreateRemoteThread/LoadLibrary "trick". I end up with a thread id, and a process with a DLL of my choice spinning up. At least in theory, the DLL does nothing at the moment so verifying this is a little tricky. For the time being I'm willing to accept it on faith alone. ...

Best way to accomplish inter-activity communication in an Android TabHost application

Here's the deal: I have an Android application that needs to call a web service every X seconds (currently 60 seconds). This application has multiple tabs and these tabs all need to interact with the data themselves. One is a MapView, one is a ListView and then the third is irrelevant but will need to also get some global data eventually...

fast-ish python/jython IPC?

All I want to do is make some RPC calls over sockets. I have a server that does backendish stuff running jython 2.5. I need to make some calls from a frontend server running Django on CPython. I've been beating my head against a wall getting any form of IPC going. The list of things I've tried: Apache Thrift doesn't have any actual re...

ASP.NET and Remoting: "Failed to connect to an IPC Port: Access is denied."

I have a c# .NET 2.0 Windows Service that listens on an IPC port for remoting requests. The service runs as the "Local Service" account. I have an ASP.NET application that attempts to make calls on the remoted objects. The ASP.NET application runs on XP as IUSR_*MachineName*. Calls on the remoted objects are failing with the error: ...

Interprocess Communication between C++ app and Java App in Windows OS environment

We have a C++ application on Windows that starts a java process. These two apps need to communicate with each other (via snippets of xml). What interprocess communication method would you choose, and why? Methods on the table for us are: a shared file(s), pipes and sockets (although I think this has some security concerns). I'm open to...

How to send a message from one instance of a managed app to another?

I've got a WinForms app, where if there is already an instance running & the user tries to spin up another one, I stop it by checking against a Mutex before calling Application.Run(). That part works just fine. What I would like to do is pass a message from the new instance of the app (along with a piece of data in string form) to the ...

Unlock a thread from another process, in c++.

I'm programming an interprocess communication module (Process A and Process B). Is there any way the communication thread in B can run (be unlock) as soon as process A finishes a specific action, I mean without B doing any polling nor B waiting too much after A finishes its action? Which are the concepts/models/design patterns governin...

C++ multiple processes?

I've got a project that consists of two processes and I need to pass some data between them in a fast and efficent manner. I'm aware that I could use sockets to do this using TCP, even though both processes will always exist on the same computer, however this does not seem to be a very efficient solution. I see lots of information abou...

IPC performance: Named Pipe vs Socket

Everywhere seems to say named pipes are fast whereas sockets are slow for ipc. How much greater is the speed advantage of named pipes vs local sockets on linux? I would prefer to use sockets because they can do two way communication and are very flexible but will choose speed over flexibility if it is a by considerable amount. Comments, ...

Correctly destroying named System V semaphores

I'm using named System V semaphores to lock a file across all my apps on OSX and linux. Not prettiest of APIs by any definition. It seems to work, but I can't quite figure out how to properly destroy the semaphore after everybody is done with it. General logic is like this: Creating: [1] Thread or process tries to open a semaphore se...

Web Application IPC/RPC with Client Applications

Background I'm at the planning stages of a DIY project that'll help me automate some hardware at my house. It's probably also worthwhile to mention that I've got almost no experience with web-related development. The Basics http://img7.imageshack.us/img7/4706/drawingo.png -- I can't seem to embed the diagram. In order to simplify ...

Shared Memory Example for Symbian

Hi I would like to share some memory between two processes. Unfortunately I cannot find any useful examples when using google. The only thing that comes up is how P.I.P.S can be used. But I remember that it could be done in another way, similar to the one of creating of message queues. Would be great if someone could point me in the rig...

communication between two flex apps

I have 2 flex apps on the same page. I want them to be able to call each other's public functions. I am thinking of using either externalInterface calls or FaBridge to do so. Is there a better way to do it? ...

Delphi 2009: How to communicate between Windows service & desktop application under Vista?

How can a desktop application communicate with a Windows service under Vista/Windows2008/Windows7? The application needs to send small strings to the service and receive string responses back. Both are written in Delphi 2009. (Please provide sample code also) ...

Interprocess communication Posix

Hi all, I am working on a debian system and have to communicate some processes so i am looking for some advise or documentation ... As an imposed rule, i cannot use any library such as boost, so i am trying to choose between systemV IPC and POSIX ipc facilities , but i have not found any good document about the later. ¿Could you please...

Communication between programs in .NET

Hi, I want to separate modules of my program to communicate with each other. They could be on the same computer, but possibly on different ones. I was considering 2 methods: create a class with all details. Send it of to the communication layer. This one serializes it, sends it, the other side deserializes it back to the class and th...

Identifier Removed (EIDRM) error when sending message with a IPC queue

I'm using an IPC queue to do process synchronization. I always get the EIDRM eror when sending an receiving messages from an IPC queue, but i can see that the queue is there with ipcs. I've been for 2 hours searching but i can't see the error. the following code is a stripped down version that gives me the same error. #define CLAVE ...

Can the IIS network-user account call a WCF service running under a different account?

I'm currently looking into using WCF to communicate between a server and a program that acts as a facade for a legacy system. Quick overview: user <-> ASP .NET web pages <-> WCF <-> facade program <-> legacy system I don't want to run IIS with the rights required to run the facade program so I was thinking about using WCF to communicat...