Is there an equivalent to TCP_CORK in Winsock?

后端 未结 2 1753
挽巷
挽巷 2021-01-06 11:09

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

2条回答
  •  逝去的感伤
    2021-01-06 11:57

    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.

提交回复
热议问题