TcpStatistics.ResetsSent 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取发送时设置了重置标志的传输控制协议 (TCP) 段数。
public:
abstract property long ResetsSent { long get(); };
public abstract long ResetsSent { get; }
member this.ResetsSent : int64
Public MustOverride ReadOnly Property ResetsSent As Long
属性值
Int64 值,指定发送时设置了重置标志的 TCP 段的总数。
示例
下面的代码示例显示段信息。
void ShowTcpSegmentData()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
TcpStatistics ^ tcpstat = properties->GetTcpIPv4Statistics();
Console::WriteLine( " Segment Data:" );
Console::WriteLine( " Received ........................... : {0}",
tcpstat->SegmentsReceived );
Console::WriteLine( " Sent ................................ : {0}",
tcpstat->SegmentsSent );
Console::WriteLine( " Retransmitted ....................... : {0}",
tcpstat->SegmentsResent );
Console::WriteLine( " Resent with reset ................... : {0}",
tcpstat->ResetsSent );
}
public static void ShowTcpSegmentData()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
TcpStatistics tcpstat = properties.GetTcpIPv4Statistics();
Console.WriteLine(" Segment Data:");
Console.WriteLine(" Received ........................... : {0}",
tcpstat.SegmentsReceived);
Console.WriteLine(" Sent ................................ : {0}",
tcpstat.SegmentsSent);
Console.WriteLine(" Retransmitted ....................... : {0}",
tcpstat.SegmentsResent);
Console.WriteLine(" Resent with reset ................... : {0}",
tcpstat.ResetsSent);
Console.WriteLine();
}
Public Shared Sub ShowTcpSegmentData()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim tcpstat As TcpStatistics = properties.GetTcpIPv4Statistics()
Console.WriteLine(" Segment Data:")
Console.WriteLine(" Received ........................... : {0}", tcpstat.SegmentsReceived)
Console.WriteLine(" Sent ................................ : {0}", tcpstat.SegmentsSent)
Console.WriteLine(" Retransmitted ....................... : {0}", tcpstat.SegmentsResent)
Console.WriteLine(" Resent with reset ................... : {0}", tcpstat.ResetsSent)
End Sub
注解
TCP 重置是使用 TCP 标头中的重置 (RST) 控制位指定的。