Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broadcasting data using SharedMemory #70

Open
ekalchev opened this issue Oct 28, 2023 · 0 comments
Open

Broadcasting data using SharedMemory #70

ekalchev opened this issue Oct 28, 2023 · 0 comments

Comments

@ekalchev
Copy link

ekalchev commented Oct 28, 2023

I am looking for advice how to implement the following functionality with SharedMemory

I have N number of processes and I would like any of those N processes to broadcast data to other N-1 processes.
I looked at the code and it seems this is not supported out of the box. I am looking how to implement that utilizing SharedMemory classes.
One possible solution is every process to have CircularBuffer with unique name. On start, every process will register the name of his Circular buffer on my own implementation of Memory Mapped file that will act as registry for the active processes. When a process need to broadcast data, he will first read the memory mapped file with the regirations and they will construct many circular buffers using the registration names and then will send the data to each buffer.

Is there easier way to do that using SharedMemory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant