4 ms·
Good point. And I would agree that the error lies in choosing to use strings for inappropriate places. Also, ETX might have been a good terminator :) I assume
by function_seven 9y ago
Good point. And I would agree that the error lies in choosing to use strings for inappropriate places.
Also, ETX might have been a good terminator :) I assume NUL was chosen for easier checking (if (char) ...) vs (if (char == 0x03) ...)
But my argument was against length prefixing somehow being "more fundamental" than having just a sequence of characters "raw" in memory addresses.