hobbits icon indicating copy to clipboard operation
hobbits copied to clipboard

need to know packet length

Open renaynay opened this issue 5 years ago • 1 comments

hobbits wire protocol needs to have a packet-length field when serialized on the wire.

should look like <length><hobbit-bytes>

renaynay avatar Jun 13 '19 21:06 renaynay

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.

decanus avatar Jun 13 '19 21:06 decanus