Particularly, I am using the SerializeToFileDescriptor() function to
send the serialized data over a socket interface. The problem is that
the data does not get sent before I explicitly close the socket using
close(fileDescriptor). I even tried letting the google protocol buffer
object go out of
(). So, the problem is not in protobufs.
Sorry.
On Tue, Aug 10, 2010 at 10:58 AM, nirajshr niraj...@gmail.com wrote:
Particularly, I am using the SerializeToFileDescriptor() function to
send the serialized data over a socket interface. The problem is that
the data does not get sent before I
at 2:19 PM, nirajshr niraj...@gmail.com wrote:
Hi Kenton,
I really appreciate your quick response. As you mentioned in your
response, the protobuf library does write all the data to the file
descriptor before returning from SerializeToFileDescriptor(). But, I
have to explicitly close
I am getting the following warning message from the compiler while
compiling my program with google protocol buffers using g++ (gcc
version 4.1.2 (Red Hat 4.1.2-46)) with a -Wall option.
/usr/include/google/protobuf/io/coded_stream.h: In member function
'bool
I want to know which of the following implementation is better in
terms of performance and usability. Option A is much easier and
portable across different protobuf versions. Is it worth the trouble
trying to go with Option B? In my tests, I could not find much of a
performance gain by using
I want to add an array of double to protobuf message object. I already
have an array of doubles allocated in my program, and I want to
serialize this information. Currently, I am doing this by adding
individual elements as follows:
for(unsigned i=0; i size; i++) {
//
I am using version 2.3.0
On Aug 17, 8:24 pm, Kenton Varda ken...@google.com wrote:
No, the warning is not specific to your system. I believe we fixed these
warnings in version 2.3.0 -- maybe you should upgrade?
On Tue, Aug 17, 2010 at 7:17 AM, nirajshr niraj...@gmail.com wrote:
I am
, nirajshr niraj...@gmail.com wrote:
repeated DoubleData bucketDouble = 2;
You should declare this field packed:
repeated DoubleData bucketDouble = 2 [packed=true];
This will improve efficiency on the wire.
--
You received this message because you are subscribed to the Google Groups