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

You can still reserve one value as a control character and have non-text streams that don't need prefixing of data frames by size.

These are also easier to recover the data from in case of corruption, or re-sync the receiver, since you have a control byte you can sync on.



Yes, in fact, this is most common in video streaming formats. These types of streams are more commonly downloaded as opposed to uploaded where the server has to be careful not to exhaust too many resources parsing variable-length messages.


It's also fairly common if you have alway-on streams without any signalling, where you can connect to the stream at any time, like with UART.




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

Search: