Questions tagged [interprocess]

A capability supported by some operating systems that allows one process to communicate with another process. The processes can be running on the same computer or on different computers connected through a network. It enables one application to control another application, and for several applications to share the same data without interfering with one another.

412 questions
3
votes
2 answers

How to use "push_back" function vector of Complex struct in boost.interprocess shared memory

Sorry to bother you. I am writing code to make this code,"http://coliru.stacked-crooked.com/a/0ab21481b69d87bb" in this question "Structures and vectors in Boost Shared Memory", the basis But, I am stuck in compile error of this…
NEWBIEEBIEE
  • 197
  • 2
  • 13
3
votes
1 answer

Interprocess communication in Lua with Example?

I have been struggling a lot to get this to work. Can someone provide an example with any LUA api of 2 scripts that pass a message back and forth. I have tried Oil, lua-ipc and zeromq. But I face several missing libraries issues. The ultimate goal…
nico
  • 1,136
  • 1
  • 15
  • 33
3
votes
1 answer

boost::interprocess::string conversion to char*

Is it possible to convert a boost::interprocess::string to an std::string or to a const char*? Something like c_str()... E.g.: boost::interprocess::string is = "Hello world"; const char* ps = is.c_str(); // something similar printf("%s", ps); I…
Pietro
  • 12,086
  • 26
  • 100
  • 193
3
votes
1 answer

shared memory locking and process crash

I want try to understand better the problem of synchronization of shared memory. I have understood that interprocess synchronization can work differently on different operating system. The most difference is what's happening when a process that has…
Marco
  • 31
  • 2
3
votes
2 answers

enter pdb with kill signal

In a recent project, I want to debug my program in production use state. The production environment is very complicated so I want to debug the program whenever I find a problem. This is what I want to achieve: whenever I want to debug, I will send a…
atbug
  • 818
  • 6
  • 26
3
votes
3 answers

Multiple python scripts sending messages to a single central script

I have a number of scripts written in Python 2.6 that can be run arbitrarily. I would like to have a single central script that collects the output and displays it in a single log. Ideally it would satisfy these requirements: Every script sends its…
Ipsquiggle
  • 1,814
  • 1
  • 15
  • 25
3
votes
1 answer

How to I create a boost interprocess vector of interprocess containers?

I like to create a boost interprocess vector of classes containing a interprocess container. The following code works until the resize function call and of course because my class has not default constructor. How to I resolve this problem? The…
Max
  • 340
  • 2
  • 15
3
votes
2 answers

Send Data to Multiple Processes in Linux

I need to update multiple processes with several different pieces of data, at varying rates, but as fast as 10 Hz. I don't want the receiving processes to have to actively get this data, but rather have it pushed to them, so that they only have to…
hBrent
  • 1,696
  • 1
  • 17
  • 38
3
votes
1 answer

RPC Authentication

I'm working on communicating data on local machine using Remote Procedure Calls ( RPC ). My requirement is use RPC to communicate data between two processed, but server should authenticate client by some means. I came across RpcBindingSetAuthInfo…
user832096
  • 373
  • 1
  • 6
  • 15
3
votes
3 answers

Ping-pong using kill and flags in POSIX

I'm trying to implement interprocess communication by using POSIX signals in C, especially I'm writing Ping-Pong problem. So here's my source code: #define CHILD 0 #define PARENT 1 int flag[2]; void handler(int sig) { if (sig == SIGUSR1) { …
inaumov17
  • 1,329
  • 11
  • 18
3
votes
1 answer

Memory Mapped Files, Managed Mapped File and Offset Pointer

I'm a little bit confused about the terminology of Boost Library (for windows). What I'm trying to do is simply; create a file on disk (a big file >50 GB) do some mapping for write and read operations seperately. For example first map 1 gb portion…
3
votes
4 answers

How do I obtain a handle on an object from another .NET process?

In C#, I know how to run a .NET executable from code and also find out if an instance of the executable is already running. What I would like to do is if an instance is already running, obtain an instance of the Foo object within the C# code of a…
Philip Wallace
  • 7,905
  • 3
  • 28
  • 40
3
votes
2 answers

How to serialize boost::interprocess::containers::vector

I'd like to use boost serilaization with an boost::interprocess::containers::vector The serialization of a std::vector works fine by including #include But I have a class containing a shared vector class…
Max
  • 340
  • 2
  • 15
3
votes
1 answer

fork () and execlp () , printf before execlp() does not get executed

I m learning interprocess communication ...this is the code that bugs me #include #include #include int main(void) { int pfds[2]; pipe(pfds); if (!fork()) { printf("I m the child process\n"); …
Subbu
  • 2,063
  • 4
  • 29
  • 42
3
votes
3 answers

C++ Mutex for Windows

I'm working on a C++ project for Windows and need a good mutex implementation to synchronize b/w processes (i.e. a wrap for the winapi). I'm currently using boost::interprocess::named_mutex, however I noticed that if one of the processes crashes -…