Hi All, 

Currently google protobuff supports limited dataTypes. so for string we 
have only one option which generates a std::string, I can not find any way 
to declare strings as char buffer or boost::interprocess::basic_string . 
And as for std::string we can not pass the allocater pointer which is 
pointing to shared memory . Thus looks to me its not possible for 
allocating protobuf objects directly on shared memory , the one which 
contains string which any object of practical object will do.

I am also trying to achieve the same , so if someone can contradict me and 
can give us a solution will be great.

And i want to use objects on shared memory not serialized string as we are 
using google peotobuf as our core datmodel as well due to benefits we got 
from its reflections , ans want to share datamodel across different 

Tarun Kumar

On Thursday, March 25, 2010 at 10:04:40 PM UTC+5:30, Jason Hsueh wrote:
> +protobuf mailing list
> This is a bit outside the scope of protocol buffers - the core library 
> does not provide any such functionality. I am personally not that familiar 
> with their usage, but I don't see any technical limitations to using 
> protocol buffers with shared memory. It would be a bit trickier as you may 
> have to deal with concurrency issues, ensure that the shared memory segment 
> is large enough to hold the serialized protos, and maybe manage reuse of 
> the shared memory segment. But given a sufficiently large piece of shared 
> memory you could just use SerializeToArray/ParseFromArray to write and read 
> the data.
> On Wed, Mar 24, 2010 at 6:58 PM, yh zhang <yuanha...@gmail.com 
> <javascript:>> wrote:
>> Dear Protocol Buffer owners,
>>        Sorry for interuption.
>>        Now looking into Protocol Buffer and I have some questions about 
>> it.
>>        Can you tell me if there is way to communicate between server and 
>> client without using socket in PB? Is there a way to use shared memory to 
>> communicate between two process based on PB?
>>        Thanks very much. I am looking forward to hearing from you.
>> Best Regards,
>> Yuanhai Zhang

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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to