Re: TCP isn't a good messaging protocol
The socket API is blocking. You have a choice of hoping that the message will come in one RX, or waiting forever for the next byte.
It's an API designed 50 years ago, when servers had only one network card, The socket interface is even more limiting than raw TCP.