What developers should know about TCP
What they mostly should know: TCP provides a bidirectional stream of bytes on the application level. It does NOT provide a stream of packets.<p>That means whatever you pass to a send() call is not necessarily the same amount of data the receiver will observe in a single read() call. You might get more or less bytes, since the transport layer is free to buffer and to fragment data.<p>I have seen the assumption of TCP having packet boundaries on application level being made too often - typically in stackoverflow questions like: „I don’t receive all data. Is my OS/library broken?“