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

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

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

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 13:35

    Why not just use a blocking socket?

    This may be a bit dated, but here is some explanation on blocking/non-blocking and overlapping IO.

    http://support.microsoft.com/kb/181611

    It would help if we knew which language and OS you were using, BTW, to better show code snippets.

提交回复
热议问题