In many UNIX TCP implementations, a socket option TCP_CORK is provided which allows the caller to bypass Nagle\'s algorithm and explicitly specify when to send a physical pa
There is no equivalent. The best you can do is gather your data pieces into your own buffer first, and then send the completed buffer to the socket when ready, and let Nagle handle the packets normally.