Is there a way to block on a socket send() until we get the ack for that packet?

后端 未结 7 1341
盖世英雄少女心
盖世英雄少女心 2020-12-31 12:47

Or do I have to implement it at the application level?

相关标签:
7条回答
  • 2020-12-31 13:51

    The whole point of using TCP is to hide that individual ACK from applications. If you need to detect every ACK, then implement your own protocol using UDP or IP. TCP is probably an overkill. Or you can go up the stack and use a protocol like HTTP as a transport.

    0 讨论(0)
提交回复
热议问题