kRPC: Control the game using C#, C++, Java, Lua, Python...

kRPC: Control the game using C#, C++, Java, Lua, Python...

7.8k Downloads

Why is protocol buffer message length sent before the actual message?

PaulBernier opened this issue ยท 1 comments

commented

https://krpc.github.io/krpc/communication-protocols/tcpip.html
Why is it necessary to send the length of the message followed by the actual message? Shouldn't Protocol Buffer already handles that by itself somehow when decoding messages?

commented

Ok I literally just found the answer... https://developers.google.com/protocol-buffers/docs/techniques?csw=1#streaming Sorry about that :)