Read the amount given by the size of the buffer This uses MSG_WAITALL and will only return when the full amount bytes requested is fulfilled, not just the currently available amount in the kernel network queue
Some applications have no header for length but demarcate the data ending by closing the socket here one would want to chunk read as making an assumption about how much data is sent would be futile