Hi, friends.
I'm writing a small system consisting of two processes: a publisher and a subscriber, by C++. I use Protocol Buffers and Arena. In this small system, publisher will directly construct some protobuf messages in the memory area (created by mmap and passed to Arena) shared by publisher and subscriber, without serialization (i.e., zero copy). However, there are 2 (seemingly unsolvable) problems: - the underlying data of std::string is uncontrolled, thus subscriber cannot read std::string::c_str(). - the virtual table pointer of protobuf message is an absolute address in process publisher, thus it's difficult to use reflection, and whenever I call google::protobuf::util::MessageToJsonString the system will crash. Should I give up? (Many of my efforts seem to be in vain.) Thanks. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/protobuf/9747c093-6c40-4ff0-beb1-0b733fe55905n%40googlegroups.com.
