I was thinking of using WCF, but then the endpoints would collide.
What are the other options?
The endpoints will collide because the second instance will be created from the same executable file.
...
Hii ,
I was asked this question in a recent interview for which i didnt answer as i was relatively new to IPC .
How would you use IPC if the processes are on different systems ?
...
Possible Duplicate:
How do I receive a signal sent with sigqueue in a c program (on linux)?
Hi
How do I receive receive a signal sent with sigqueue in a c program (on linux)?
If just use kill to send a signal I just add a receiver with something like this
signal(SIGUSR1, sigusr1);
that point to a simple function like t...
Hi
How do I receive receive a signal sent with sigqueue in a c program (on linux)?
If just use kill to send a signal I just add a receiver with something like this
signal(SIGUSR1, sigusr1);
that point to a simple function like this:
void sigusr1()
{
signal(SIGUSR1,sigusr1);
printf("SIGUSR1 ....\n");
}
But if I send ...
Hi folks,
I'm developing on an application at the moment which contains quite a lot of personal user information - things like Facebook contacts, etc ... Now, one of the things I want to be able to do (and have done, quite effectively) is open up parts of the application to "3rd Party" applications, using Android's build-in inter-proces...
I have the following python code:
import pty
import subprocess
os=subprocess.os
from subprocess import PIPE
import time
import resource
pipe=subprocess.Popen(["cat"], stdin=PIPE, stdout=PIPE, stderr=PIPE, \
close_fds=True)
skip=[f.fileno() for f in (pipe.stdin, pipe.stdout, pipe.stderr)]
pid, child_fd = pty.fork()...
Is it better to use POSIX message queues or Unix domain sockets for local IPC communication?
I have worked with Unix sockets between machines (not domain) and I remember that making and breaking the connection would cause sockets to linger awhile before they finally went away. Moreover, if you wanted a "reliable" exchange you either had...
Standard streams are associated with a program. So, suppose there
is a program already running in some way (I don't care how or in
what way). The goal is to create pipes to the STDIN of the
program from different processes (or programs) that run either
locally or remotely and stream data into it asynchronously.
Available information is ...
How do you send keyboard input to a program?
That is, under a Linux GUI, is there a good manual (programmable) way, or tool,
of simulating keyboard input on a running program on Linux, so that I can send
from the command-line, e.g., "Control-T" to a Firefox process and "echo
'hello'\n" to a Gnome-Terminal process without actually focusi...
Hi,
I'm using C++ to develop the server side of a game which multiple servers need to communicate with each other using Publisher/Subscriber pattern. Each server subscribes to some events on different servers. All servers are located on the same network so latency and packet-loss should be very low. The inter-server communication should...
I've been playing with the subprocess module to iteratively send
each line in an input file to a process created by the following command.
ssh -t -A $host 'remote_command'
The remote_command expects a line in its STDIN, does some processing on the
line and iterates the cycle until STDIN closes or reaches EOF.
To achieve this, what I'...
I am writing a terminal emulator in ruby using the PTY library. /dev/tty0 is a device file connected to a keyboard. I am spawning the shell like this:
shell = PTY.spawn 'env TERM=ansi COLUMNS=63 LINES=21 sh -i < /dev/tty0'
It mostly works, but when a subprocess is started in the shell, shell[0] is not outputting the keyboard input to ...
Hi,
I have this Python based service daemon which is doing a lot of multiplexed IO (select).
From another script (also Python) I want to query this service daemon about status/information and/or control the processing (e.g. pause it, shut it down, change some parameters, etc).
What is the best way to send control messages ("from now o...
Hi,
I've written a layered web application that consists of a rich-web client (PHP) that interacts with a java service. The web client is hosted on an apache server, and the java service runs on the same physical machine (to reiterate: the entire app, client and service, are running on the same physical machine).
User Request --> DB <-...
Hello,
I am trying to use Mach port messages in objective-c but I cannot find any documentation or working example.
Do have this in stock?
Thanks in advance for your help,
Regards,
...
I have a reservation wizard in android, when i say wizard i mean i have multiple activities (meaning screens) that are passed from one to another until booking is complete. in each step of the way my info may be invalid and so ill have to back track 2-3 activities and start all over, all the activities i back tracked should be destroyed,...
Hi
I have a old school c program that now and then
need to tell a C++ Qt based application about some "events" that has occurred on my system.
But when I started to work with this problem I noticed that some ipc techniques is quite easy to use in the c program.
And then we have some Qt specific styles that works quite well in the "Qt...
Hi I'm having problems with my SendMessage.
It seams like the message never reaches my form (I'm using Winspector Spy to see which messages that are registered in my form), which is strange because I'm shure I'm sending to the correct Handle for the current form.
The SendMessage is within a dll but that should not have any thing to ...
Background:
We have a bunch of Windows apps that need to be integrated.
We think a publish-subscribe IPC
mechanism/library would do the trick.
Inter app Events don't need to be
persisted;
Not all apps are written on .NET but
those that aren't have a plug-in
architecture that allows for
extending in .NET
The apps are run by users on a
T...
I have a DLL written in Visual C++ and an application written in C#. The application that is written in C# already uses IPC between multiple instances of itself so that it only ever runs one instance (it attempts to start an IPC server, and if it can't assumes there's already one running, in which case it sends the command line argument...