I have a simple app that received data using the stdin and i have this loop:
for(;;) { if(!request.ParseFromIstream(&cin)) { cerr << "Cannot parse pb message." << endl; return -1; } do_something(); } I wanted to test my app so i serialized a protobuf message to a file and run it like: ./a.out < message.ser however i would expect some blocking after the parse from istream but instead it is constantly returning true (although there is only 1 message in the file) making the do something function to be called over and over when i expected it to be only once. What am i doing wrong? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.