How to properly read over TCP when size is not known?
I’ve always used “over TCP” protocols with a fixed and known size. But what about reading data without a known size where the ‘end’ is marked by a delimiter? (e.g HTTP Headers) This is the function I normally use: