ipc

Interprocess Communication Between C# application and unmanaged C++ application

Hi All, I have two windows services, the first one written in c# and the second written in unmanaged c++, I want to know how can I do two-way interprocess communication. Thanks All ...

What is the best way to pass information from a C# app to a C++ app while both are running?

What would be the best way to pass information from a windows forms C# app to a MFC C++ app while they are running? I don't need to send much, just a small string. Thanks, Jeff ...

What is the underlying transport for D-Bus?

D-Bus allows programs to communicate. How is this IPC implemented? Unix domain sockets, shared memory + semaphores, named pipes, something else? Maybe a combination? ...

Using pipes in C for parent-child IPC makes program block

I am writing a server which fork()'s off a child process when it accepts a socket connection. As the child communicates with a client, it must send some of that information back to the parent. I am using a pipe to accomplish this. The problem is that when I try to do the parent-child IPC, the parent blocks when reading input from the c...

How do I get a System.Windows.Form instance from its Win32 handle?

The following code implements a simple singleton that ensures only 1 instance of my application can be run. However, if another instance is started, I need to be able to grab that instance's command-line arguments, pass them to the initial instance, then terminate the second instance. The issue comes in when I'm attempting to get hold o...

IPC Troubleshooting

What is the best way to troubleshoot IPC? Are there any tools/tricks to determine problems (without requesting the source code)? I have two, third party components. The IPC server config and client config seems correct. Yet the two components don't want to communicate. One component throwing a null object exception, which I believe is...

Are there repercussions to having many processes write to a single reader on a named pipe in posix?

I am writing a program for POSIX (OSX) where I will have many processes sending messages to one listener, who is essentially a logging thread. All of the processes are running in seperate programs, and using a single named pipe (FIFO) that many processes write to, but only a single process reads from is very tempting. Questions: 1) ...

How would you communicate a wcf service with a windows service?

Two weeks ago I needed a way to communicate a wcf service with a windows service running on the same computer. The windows service had to get data from a external source and share it with the wcf service (hosted in IIS) who had to give it when a client made a request. I chose to do that with ipc. I done it and now the windows service i...

socket passing between processes

Is there a way to pass a socket between processes (not same address space) in Windows? I find this info Shared Sockets, therefore believe that it is possible. "The WSADuplicateSocket function is introduced to enable socket sharing across processes"... More info : at source code of Apache (httpd-2.2.11-win32-src.zip) have usage for api...

Are there special considerations for a windows service to send messages to user windows?

I have to write a Windows Service application (no GUI) that will monitor an event, and if it occurs will send a standard windows message to an application. The handle of the application will be given to the service by a DLL which is then unloaded, so a windows message is the way we wish to use. The question though is whether the service...

Can Events be Inter-Process?

I have created an event in one process and to test, sent the event handle via a pipe to a totally separate process (not a child thread) When I fire the event in the first, WaitForSingleObject does not detect the event so I am guessing the answer is no unless I missed some trick in the SECURITY_ATTRIBUTES structure? Or perhaps I need to...

IPC Remoting problem

We are receiving the following error using IPC. "Failed to connect to an IPC Port: The system cannot find the file specified." The issue is happening on a Windows 2003 server. Of course it only happens in production. We are unable to reproduce this in our development environment. The Windows service that is attempting to use IPC is ...

Creating unique keys for a message quene for an app that can have multiple instances

I have made a Linux CUI app that communicates between processes via Message-quene. There is no problem with it as long as it is a single instance. However when there are multiple instances of the same app, the messages in the quene get sent to the wrong instance. I understand this can be avoided by giving the msgget function a unique k...

Best IPC for VB6 and .net application

In our application (a document management system) we are supposed to be notified of screen changes (or notify the other program of screen changes) in order to keep the two applications looking at the same data, one being the order fulfillment app, the other the document viewer of the original fax. The fulfillment app is written in vb6 a...

Sending messages from php to java

My app is a feed aggregator. The frontend is programmed in php, but I have a Java program running periodically to update the feeds database. Under the current scheme if a user adds a feed to be aggregated he must have to wait until the aggregator runs and updates the database to see the news from the feed he subscribed. What I want to do...

using shared memory with php and c?

Can you use shared memory to communicate between php scripts and c program in windows? The c program runs all the time and uses memory mapped files ie: handle1 = CreateFileMapping( (HANDLE)0xFFFFFFFF, NULL, PAGE_READWRITE, 0, sizeof(byte)*BUFFER_SIZE, "my_foo" ); hView = (LPINT) MapViewOfFile(handle1, FILE_MAP_ALL_ACCESS, 0, 0, 0); ...

Inter-process communication between languages/operating systems

I am looking for an inter-process communication facility that can be used between languages and/or environments running on the same or different systems. For instance it should allow signals to be sent between Java, C# and/or C++ components, and it should also support some kind of queueing mechanism. The only facility that is obviously...

Best and Easiest Method for inter-process communication in large project

What is the best and easiest method that can be used for inter-process communication in a very large project? My requirement is to communicate between a normal Windows Forms Application and Windows Services. Methods that are easy to maintain and implement are preferred. Thanks ...

Boost, Shared Memory and Vectors

Hi, I need to share a stack of strings between processes (possibly more complex objects in the future). I've decided to use boost::interprocess but I can't get it to work. I'm sure it's because I'm not understanding something. I followed their example, but I would really appreciate it if someone with experience with using that library...

.NET remoting and Delphi win32

Hi, Is it possible (and feasible) to use .NET Remoting interface with Delphi win32 application? I need communication between .NET application and Delphi win32 application, so .NET remoting would be native for other end of the pipe. Any other solutions, as close to native as possible, for both ends without 3rd party libraries? Applicat...