Replies: 1 comment 3 replies
-
Hi @mpghf, We have implemented the CapnProto Publisher / Subscribers, but we're not using them productively. That saying, we're finalizing the API for eCAL 6 (which we hope to release end of January) so now would be a great time to get your input on this. On the master branch, we have already made some changes, but mainly on the subscribing side. Basically, the Message API is just a thin layer, that can provide a way to a) serialize / deserialize data and b) provide metadata, that (potentially) allows users to make use of reflection. |
Beta Was this translation helpful? Give feedback.
-
Is anybody using capnproto and eCAL (with C++)? The example seems to suggest reusing the same capnproto builder for each iteration of the the capnproto structure I'm sending - I'm updating fields in a loop before sending the message.
This seems to work the first time, but reusing the builder for complex capnproto structures (like strings) causes the packet to bloat with more zeros each time it's used, and eventually become to big to send.
The capnproto people recommend using a completely new builder each time. When capnproto is used with eCAL, the recommended way to get a builder is using
eCAL::capnproto::CPublisher<Packet>::GetBuilder()
, and that seems to return a shallow copy to essentially the same builder each time, so that doesn't help.Creating a new publisher on each iteration doesn't seem to be feasible either.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions