Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

https://github.com/protobufjs/protobuf.js/wiki/How-to-revers...

Prepending the message with the length means the message is length-limited. Seems standard practice here.



yep, I think it's quite standard. The BitTorrent protocol also uses it extensively : https://wiki.theory.org/BitTorrentSpecification#Bencoding




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: