cpp-ipc icon indicating copy to clipboard operation
cpp-ipc copied to clipboard

Doesn't work when sending std array/vector with ipc

Open oneoneabcd opened this issue 2 years ago • 3 comments

hello, I tried to send std::vector and std::array with ipc and it doesn't work. Can I get some help? Maybe there is a way to send vector/array?

oneoneabcd avatar Nov 03 '21 15:11 oneoneabcd

You should serialize them first, then put the memory block pointer and the size of it to the sending interface.

mutouyun avatar Nov 05 '21 03:11 mutouyun

I cannot send big vectors (with a lot of elements). Is there any max size of a message that can be sent ? maybe there is a way to send big vectors in one message ?

oneoneabcd avatar Nov 11 '21 11:11 oneoneabcd

How do you send a big vector? Could you show a minimal example code?

mutouyun avatar Nov 11 '21 15:11 mutouyun