Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to know packet length #58

Open
renaynay opened this issue Jun 13, 2019 · 1 comment
Open

need to know packet length #58

renaynay opened this issue Jun 13, 2019 · 1 comment

Comments

@renaynay
Copy link
Contributor

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

should look like
<length><hobbit-bytes>

@decanus
Copy link
Contributor

decanus commented Jun 13, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants