T
T
tex6202018-05-11 11:38:27
C++ / C#
tex620, 2018-05-11 11:38:27

It is necessary to transfer an array from one process to another, How to do this?

It is necessary to establish a communication channel between 2 processes in C ++, and synchronize an array, every specified period of time, let's say every 200ms.
Sockets, pipes disappear immediately, since the time interval must be clearly fixed, and so that it can be configured.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2018-05-11
@alexr64

Shared memory.

R
rPman, 2018-05-11
@rPman

shared memory, pipes and memory mapped files
for passing events - semaphores
there are cross-pattern libraries like libevent

A
Alexander Taratin, 2018-05-11
@Taraflex

doc.qt.io/qt-5/qsharedmemory.html
https://www.boost.org/doc/libs/1_61_0/doc/html/int...
https://pocoproject.org/docs/Poco.SharedMemory .html
https://www.codeproject.com/Articles/835818/Ultima...
https://msdn.microsoft.com/en-us/library/windows/d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question