[protobuf] C++: Parsing/deserializing a PB message object from boost::asio::tcp::socket

2012-04-15 Thread Ebu
I have a client that sends a PB serialized message to a server which is implemented with C++, using boost/asio-library's sockets. No matter how hard I try to figure it out or google about it, I can't find a simple example on how to actually read the data from (asio)socket so that I can parse it bac

Re: [protobuf] C++: Parsing/deserializing a PB message object from boost::asio::tcp::socket

2012-04-15 Thread Jason Hsueh
You would need to implement a ZeroCopyInpuStream around the socket. The implementation's Next() method would basically wrap the socket's read_some method, and yield the buffer and size of data that was read. Since Next() should return false when there's no more data to read, you would just check fo

[protobuf] Re: Issue 66 in protobuf: cannot install using easy_install

2012-04-15 Thread protobuf
Comment #47 on issue 66 by jens.ran...@gmail.com: cannot install using easy_install http://code.google.com/p/protobuf/issues/detail?id=66 Just curious, is the issue mentioned here: https://github.com/cloudControl/PyDoozerLib/blob/master/README.md related to this issue? Or is it a new one?

[protobuf] Re: Issue 66 in protobuf: cannot install using easy_install

2012-04-15 Thread protobuf
Comment #48 on issue 66 by stevv...@gmail.com: cannot install using easy_install http://code.google.com/p/protobuf/issues/detail?id=66 Installation error with protobuf 2.4.1 There is a case when you try to install pydoozerlib via python setup.py install and run into following error: [

[protobuf] Automated dependency generation?

2012-04-15 Thread Christopher Smith
I have been reworking my Makefile's to do automatic dependency generation proper. I realized that with modern gcc & GNU make it gets pretty simple to do this, but protocol buffers were my one stumbling point, as they have dependencies that gcc can't extract. It occurred to me that it ought to be tr