I m using recv function (C++) in order to get indication about network problem (it return negative value in this case)
参看:, at TCPLinkviks, I see that there are R1 and R2.
R1是TCP告知申请存在问题的。 R2是连接关闭的。
“The value of R1 SHOULD correspond to at least 3 retransmissions, at the current RTO. The value of R2 SHOULD correspond to at least 100 seconds.”
RTO(Retransmission Timeout)通常从3秒开始,就R1而言,可能会超过10秒。
根据我的理解,我知道R2。 你们是否知道在C++申请中采用R1的方法?
10x.