I have two unrelated processes that use .NET assemblies as plugins. However, either process can be started/stopped at any time. I can't rely on a particular process being the server. In fact, there may be multiple copies running of one of the processes, but only one of the other.
I initially implemented a solution based off of this arti...
I'd like to be able to pass a SecureString (a cached passphrase) to a child process in C# (.Net 3.5), but I don't know what the most secure way is to do it. If I were to convert the SecureString back to a regular string and pass it as a command-line argument, for example, then I think the value may be prone to disk paging--which would ma...
I've never had to do IPC on Windows before. Currently I'm developing a pair of programs, a standard GUI/CLI app and a windows service. The app has to tell the service what to do. So, assuming the communication is local only, what would be the best communication method for these two processes?
Where best is defined as more robust and les...
In prior versions of Windows before Vista you could have a Windows Service interact with the current logged in desktop user to easy display information on the screen from the service. In Windows Vista Session 0 was added for security to isolate the services from the desktop. What is an easy way to communicate between a service and an app...
I grew up on UNIX Network Programming, Volume 2, Second Edition: Interprocess Communications (RIP, Richard Stevens), which was the essential reading for designing a multiprocess program back in the days. Re-reading it, it is rather lacking in more modern multiprocess/multithread topics, such as dbus, etc.
Are there any good books which ...
I have used IPC in win32 code a while ago. [Critical sections, events & semaphores]
How is the scene in .NET enviroment?
Are there any tutorial explaining all available options and when to use and why?
...
Hi,
I'm looking for suggestions on possible IPC mechanisms that are:
cross platform (WIN32 and Linux at least)
Simple to implement in C++ as well as the most common scripting languages (perl, ruby python etc).
Finally, simple to use from a programming point of view!
What are my options? I'm programming under Linux, but I'd like what...
In the middle of a Perl script, there is a system command I want to execute. I have a string that contains the data that needs to be fed into stdin (the command only accepts input from stdin), and I need to capture the output written to stdout. I've looked at the various methods of executing system commands in Perl, and the open function...
While implementing an applicative server and its client-side libraries in C++, I am having trouble finding a clean and reliable way to stop client processes on server shutdown on Windows.
Assuming the server and its clients run under the same user, the requirements are:
the solution should work in the following cases:
clients may...
Should I use Named Pipes, or .NET Remoting to communicate with a running process on my machine?
...
A third-party application reads some Java code from an XML file, and runs it when a certain event happens. In Java, I want to tell a .NET 3.5 application, running on the same machine, that this event occurred. The total data transferred each time is probably a few characters.
What is the best way of using Java to tell the .NET process t...
I am creating an appcation on Vista,which include a service and a Console application .Both running in same user account
In service i am creating an event and waits for that event.In console application i am opening the same event (problem starts here) and calling SetEvent function. I can not open the event (getting error 5,Access is ...
I have two threads in an Android application, one is the view thread, and the other a worker thread. What i want to do is to sleep the worker thread until the view thread terminates the handling of the onDraw method.
How i can do this? is there a wait for a signal or something?
...
I am designing an application that is going to consist of 3-4 services that run as separate processes and are linked by a suitable IPC. The system is going to have a web interface and I want to use whatever webserver is there.
The web interface should be accessed under some URL that allows to have other URLs on the same webserver doing ...
I would like to implement a robust IPC solution between a single JVM app (one process, potentially multiple threads) and a native C++ application that is linked to a C++ dll. The dll may or may not be on the same physical machine. What is the best approach for doing so?
Any suggestions will be greatly appreciated! Thanks!
...
We have a monolithic MFC GUI app that is nearing the end of it's life in C++. We are planning to build new functionality in C# and pass data between each app.
Question is: What is the best approach for passing data between C++ and C#?
Notes:
Both ends will have a GUI front end and will probably only need to pass simple data like Id's ...
Forgive me if this verges on being a "discussion" question, but I really would
appreciate a yes/no answer, with an appropriate explanation.
Suppose you have to design and implement a control API for a robot, say the next
generation Mars Rover. Do you architect this API according to RESTful
principles, or do you use a classic RPC, ...
Can pipes be used across LAN computers?
In particular I'm looking for Windows, but if you have more info on other platforms, that will also help others who find this thread later.
...
Why are pipes considered dangerous to use? What can be done to avoid these security issues?
I'm mostly interested in Windows, but if you have other OS information, please provide.
...
What are the differences between pipes in Windows and Linux?
...