4 ms·
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 rec
by megous 7y ago
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.
- blackflame7000 7y agoYes, 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.
- megous 7y agoIt'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.