hobbits
hobbits copied to clipboard
need to know packet length
hobbits wire protocol needs to have a packet-length field when serialized on the wire.
should look like
<length><hobbit-bytes>
This might make sense, when reading however what could be done is you could read until the \n
character, and then read the first byte which would be header length, then the second which is body and then you essentially have the full packet.