[protobuf] tcp get packet

2012-01-03 Thread calvin zhu
client send a proto packet to server by tcp, and how do the server certain the packet size? make a packet head? -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe

Re: [protobuf] tcp get packet

2012-01-03 Thread Henner Zeller
On Tue, Jan 3, 2012 at 18:37, calvin zhu calvinmy0...@gmail.com wrote: client send a proto packet to server by tcp, and how do the server certain the packet size? make a packet head? If you want to make sure that you got the whole packet, you need to add a header with the size, yes. A simple