Questions tagged [ipc]

IPC stands for Inter-process Communication and represents a set of methods for exchanging data and messages between threads and processes.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
13 views

Windows IPC: Named pipe, MSRPC, COM, which should I use? [closed]

I want to write a program which may provide interfaces to other app/service on Windows. But I don't know for the Named pipe, MSRPC, COM, which is better? I've read the MS IPC introductions, and got ...
Maifiled's user avatar
0 votes
0 answers
15 views

Rewriting A Text File's Content In An Electron App

I want to create a text editor, and so far I was able to add file saving and file opening functionality. I want the text content of the opened file changed according to the textarea in my code, so ...
Sisifos496's user avatar
0 votes
1 answer
38 views

How to call functions (in both directions) across processes in Python using MultiProcessing?

I have two separate python processes, one is not spawned by the other. The server listens on localhost:50000 as such: from multiprocessing.managers import BaseManager def my_func(arg=None): print(arg)...
mo FEAR's user avatar
  • 607
0 votes
2 answers
49 views

Android 11+ Content provider not working when the app is not running?

I have created two apps, let's call them app A and app B. I want app A to provide data to app B via a custom provider. I wrote the code and it works fine under Android 11. However, when running on a ...
Eric Sun's user avatar
0 votes
0 answers
17 views

using audio flinger in shared library to capture audio buffer in android system

I'm working on a native shared library that will be built inside aosp source tree, in this path "sdk-version/external" in this shared library i'm trying to use audio flinger to use some of ...
tareq sleem's user avatar
0 votes
1 answer
43 views

Is there a way to call python3.8 code, from python3.11?

I have some code that breaks in python3.11 for some reason, namely paddleocr. I want to integrate it in a program that is otherwise written in python3.11. Although there is the obvious method of ...
azman's user avatar
  • 3
0 votes
0 answers
51 views

How to avoid 100% CPU when i use shared memory IPC?

I have three process, which need to pass data from one to another. considering latency, I select shared memory to share data (IPC). To get the best performance, the consumer process use busy-waiting ...
nothingisme's user avatar
0 votes
0 answers
30 views

XPC Service Connection Invalidated Immediately on Launch

Development Environment: Xcode Version: 14.3.1 macOS Ventura Version: 13.6.2 Architecture: Intel I'm developing a macOS app with an accompanying XPC service and am encountering an issue where the ...
ballade4op52's user avatar
  • 2,191
-1 votes
0 answers
23 views

Moving a C function to another process

I am trying to split a program into two different processes running on the same host but with different permissions (for privilege separation). To keep the functionality, I need to find a clean way ...
mik43211's user avatar
0 votes
0 answers
6 views

IPC Discord javascript, communicate with client of users who autorize to an application

I'm here because I want to propose an application that automates tasks. I'm working on discord.js, and I want to send specific messages on channels (users can choose, but that I know how to do), I ...
Stananas thcraft's user avatar
0 votes
0 answers
14 views

How to intercept messages between services in Android which interact via IBinder using AIDL?

I need to create a mechanism for replacing the android.os.notmyservice service. It should intercept all messages from sender service to the target service, log methods and arguments, and run the ...
DanteTemplar's user avatar
1 vote
0 answers
48 views

Shared Memory vs Named Pipe comparison gone wrong: pipe is faster?

I have taken a course related to IPC in POSIX around 1.5 years ago and we made a benchmark to compare two communication method of 1.named pipes and 2.shared memory(with a circular buffer). We create ...
EbruB's user avatar
  • 11
0 votes
0 answers
48 views

How to activate the button in popup window in Electron Js?

I have an Electron JS project. There are 2 buttons, one of them in index.html (for the main page), and the other is in popup.html (for the popup window). There is no problem with buttons in index.html....
sunShine's user avatar
  • 125
-1 votes
0 answers
25 views

I can't share my data between my electron.js browsers

Update Status button working like, you put the 11-digit code inside and it changes the status reverse(It's enum, so if it's onboard, changing to ashore or reverse). But I want to move this functiom ...
metkopetru's user avatar
0 votes
1 answer
89 views

What is the correct way of passing data through Unix sockets?

I'm working on a personal project to try to better understand inter-process communications on Unix. I have two binaries i compiled in C and I am attempting to pass data from one process to another ...
BigBurger's user avatar
1 vote
1 answer
78 views

Accessing a library for .NET Framework from .NET 7/8 using Inter-Process-Communication

I am working on an application where I need to use a vendor library for communication with external hardware. This library targets .NET Framework 3.5. A .NET standard 2.0 version of the library is ...
patvax's user avatar
  • 383
0 votes
0 answers
39 views

How can i fix my discord.py ipc runtime error?

When i run my code i get this error: AttributeError: loop attribute cannot be accessed in non-async contexts. Consider using either an asynchronous main function and passing it to asyncio.run or ...
Megabytes's user avatar
0 votes
0 answers
38 views

Scala: Ways of parent to child process communication

I want to have one-way communication from a Scala parent process that spawns two child processes and passes some data to them. Then the child processes just read the data and do not communicate back ...
Da Mike's user avatar
  • 455
0 votes
1 answer
35 views

error while running electron app main.ts with sqlite db connection

"pg-hstore" is imported by "pg-hstore?commonjs-external", but could not be resolved – treating it as an external dependency. ✓ 891 modules transformed. dist-electron/main.js 2,899....
Chiran Jeewantha's user avatar
0 votes
2 answers
85 views

Calling configure and make from Perl script

I need help please. I'm writing a Perl script to configure, compile and install MPICH. The initial two tasks require calling configure and make commands. I'm struggling to pass the options to ...
mabalenk's user avatar
  • 915
1 vote
1 answer
63 views

Why `wait` for the child when `read` could supposedly block the parent process in pipe?

I was learning pipe and communication between processes and I saw the following code to ping-pong a byte between parent and child processes: int main(int argc, char **argv) { int p[2]; char ...
Overstacked's user avatar
0 votes
0 answers
25 views

GCD Semaphore not working in IPC using shared memory

I am trying to establish IPC using some shared memory. I used GCD's semaphores for accessing the memory. This is the minimal recreation of the problem I encountered: /* A simple readers/writers ...
Ku-hello's user avatar
0 votes
0 answers
37 views

Use other file than cdv-electron-main.js for ipc in cordova-electron

It is possible to use other file than cdv-electron-main.js for IPC? I am currently using cordova-electron for a project, and, to handle the electron main process, the document ation say to directly ...
laux98's user avatar
  • 51
1 vote
0 answers
55 views

IPC between Android and linux PC using TCP and adb forward, connect successfully but transfer empty data

I have been trying to do IPC (inter-process-communication) between my Android phone and Linux PC using tcp and adb, with an Android app as Client and a python-process on PC as Server. My goal is to ...
David Yang's user avatar
0 votes
0 answers
135 views

Is my client connection code using NamedPipeServerStream at risk of memory leaks or named pipes recovery issues?

I have written a C# .NET code that utilizes NamedPipeServerStream to send and receive data. My goal is to ensure that when a client disconnects, the server waits and then establishes a new connection ...
POQDavid's user avatar
  • 203
0 votes
0 answers
72 views

Python Shared Memory Leakage

I ran the first example for the multiprocessing.shared_memory.SharedMemory class in the Python documentation website on Python 3.8. It worked as expected. But when I attached to the shared memory from ...
TheAhmad's user avatar
  • 870
0 votes
1 answer
31 views

is there problem on executing an event handler thousand of times a second inside an useEffect?

sorry for the (maybe) newbie question, i have this simple react code inside an electron app: const MainScreen = () => { const [values, setValues] = useState<number[]>([]); // 4 float values ...
Carmelo's user avatar
-2 votes
1 answer
61 views

Why does socketpair() return 2 sockets?

socketpair() is almost always used in companion with fork(). It returns 2 sockets, and after a call to fork(), we got 4. In most examples I have seen, one of the two sockets in each process is closed ...
Le Young's user avatar
0 votes
0 answers
52 views

Issue in establishing a connection between the server and client-side programs in an Inter-Process Communication practice program using Named Pipes

I have developed a Windows Forms application using C# with the goal of implementing Inter-Process Communication (IPC) between two separate solutions. Each solution has a component for sending and ...
alireza haajalii's user avatar
0 votes
0 answers
53 views

Sometimes socket communication is too slow in Dart

I'm making a socket module which connecting between flutter and android as localhost. The reason why i use socket is simple. "I have to communicate flutter and android(or ios) as synchronously&...
LevelRoot's user avatar
0 votes
1 answer
35 views

interprocess communication between multiple apps (app chain) and multiple chains via dbus

I'm writing a SW for a real HW which I don't have currently. The SW consists of multiple apps which should communicate between each other over some bus, e.g. I2C or any other bus. I was thinking to ...
ST Renegade's user avatar
0 votes
0 answers
32 views

Efficient transfer to stdin of subprocess

I am trying to make a data transfer more efficient in a linux program which has multiple clients and one server. At the beginning, the client spawns a subprocess and sends a big structure serialized ...
Étienne's user avatar
  • 4,851
1 vote
1 answer
45 views

How can I send some data like auth token from a web app to an electron thin client. I am using custom url protocols to open the thin client

How does apps like teams and zoom have a pop when we click on a meeting link in the browser that do we want to continue in the browser or open in app, if we click open in app then it launches the app ...
Swapnil Sinha's user avatar
0 votes
0 answers
25 views

react + electron after use ipcMain/ipcRenderer to save data, the page force refresh

first i have a commpoent such as give your some inputs, after you fill in them and click the save button then web page send a asyn message to main process and listen to channel. The main process write ...
YuRuiH's user avatar
  • 1
0 votes
0 answers
34 views

How can I spawn a seperate terminal in order to debug my TUI application in NodeJS with ink react

I am building an application with Ink react on a terminal. I'd like to have a dedicated and seperate terminal to output any logs I want from the main application. In order to do that, I went to try ...
JetairThePlane's user avatar
0 votes
0 answers
18 views

Inter-Process Communication Between JSF and Servlets [duplicate]

I have a JSF managed bean that is connecting to a database, but I want the connection to be accessible by several Java servlets. Is there a way to allow servlets to communicate with JSF beans and ...
TTCUSM's user avatar
  • 62
0 votes
0 answers
69 views

Reading from pipe in C always returns 0 despite different values being written

I'm writing a program that takes the following input: An integer n that represents the number of processes to create, another integer c which represents an initial value, and a final integer s which ...
Davidbowie123's user avatar
3 votes
0 answers
89 views

How to protect Perl program from abort() call in a module?

Consider this example: #!/usr/bin/perl use strict; use warnings; require 5.006_001; use Graphics::Magick; # this sets a handler for ABRT use sigtrap qw( die any ); sub try { my ($err) = @_; die(&...
jhnc's user avatar
  • 12.6k
-2 votes
2 answers
87 views

C# - Inter-process Communication using Named Pipes (What Am I Doing Wrong?)

I'm trying to use IPC to allow my application to be opened exclusively via launcher. And for that I decided to use named pipes to pass a "request" and open my main application's login window ...
MrBenini's user avatar
0 votes
1 answer
40 views

Electron IPC Main to Render Multiple listeners - listener argument must be a function

I am implementing the Electron's Pattern 3 which is Main to Render according to the following docs: https://www.electronjs.org/docs/latest/tutorial/ipc#pattern-3-main-to-renderer I am getting the ...
Franco's user avatar
  • 549
0 votes
0 answers
38 views

Shared memory condition variable block after process crash

I'm running some process with POSIX cond var on shared memory, orig question: boost-ipc-condition-variable-blocks. I run 2, 3 or 4 processes and if one of them stops, the other two get block on the ...
lior.i's user avatar
  • 625
0 votes
0 answers
47 views

SingleInstance WPF Project

I have extensions files (.cogu, .cogd) that when I double-click on it, they open program. So, i want prevent creating multiple windows and work in single one, also if second instance has a path to ...
Bird's user avatar
  • 1
1 vote
0 answers
59 views

Boost IPC condition variable blocks after one process crashes and restart

I have an interprocess condition variable to sync my processes, there is one notifier that notify and two waiters that timed_wait for notification or timeout. If one of the waiters crashes and ...
lior.i's user avatar
  • 625
0 votes
0 answers
57 views

Boost Interprocess Condition Variable example doesn't compile

I'm trying to add IPC condition variable. I took the example from the Synchronization mechanisms guide: condition variable example, but it doesn't compile. The error is in the line: data->cond_full....
lior.i's user avatar
  • 625
0 votes
0 answers
40 views

IPC 'server start' gets RuntimeError

I recently started building a Dashboard for my Discord Bot and connected it to my bot via discord.py-ipc, but upon starting, I get a RuntimeError stating that the coroutine Server.start() was never ...
atomfrog's user avatar
0 votes
0 answers
10 views

Firewall Exclusion or local use only for C#/.net IpcChannel

We have created a program that uses IpcChannel for local inter process communication. On all development and test systems, it did not rise a firewall alert. On a customer system, it does not work ...
Andreas Reiff's user avatar
0 votes
0 answers
110 views

How do I broadcast a message to one or many receivers in C++ on Linux?

I have a GPS sending the position as a text message in the NMEA: GPGGA format via TCP/IP at a fixed rate of 100 Hz. In a project I work on a 3rd party needs the position values but would prefer to not ...
Andy's user avatar
  • 3,409
0 votes
0 answers
43 views

My electron app is logging two responses while there is only one

i need someone who knows electron, am practicing my knowledge at electron, Am making a kind of basic hotel system, the renderer.js haves this showReservDetails() and takes the reservation id, and i ...
Omar Alkhateeb's user avatar
-1 votes
1 answer
55 views

Sharing ID3D11Texture2D between processes yields invalid argument error

I'm attempting to share a ID3D11Texture2D between processes using named shared handle. My tests work fine between threads, but when I do the same between two running applications, I get E_INVALIDARG ...
BartW's user avatar
  • 29
0 votes
0 answers
23 views

how to guarantee data avaliability between different block of shared memory

I used mmap to map files for data sharing bewteen processes, I then used another shared memory to notify the process when data is ready. a semaphore is created inside the shared memory. after data is ...
Lei Yu's user avatar
  • 321

1
2 3 4 5
92