Is there a way to flush a POSIX socket?

后端 未结 8 1209
误落风尘
误落风尘 2020-11-30 04:20

Is there a standard call for flushing the transmit side of a POSIX socket all the way through to the remote end or does this need to be implemented as part of the user level

8条回答
  •  我在风中等你
    2020-11-30 05:04

    I think it would be extremely difficult, if not impossible to implement correctly. What is the meaning of "flush" in this context? Bytes transmitted to network? Bytes acknowledged by receiver's TCP stack? Bytes passed on to receiver's user-mode app? Bytes completely processed by user-mode app?

    Looks like you need to do it at the app level...

提交回复
热议问题