TcpStatistics.ResetsSent Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of Transmission Control Protocol (TCP) segments sent with the reset flag set.
public:
abstract property long ResetsSent { long get(); };
public abstract long ResetsSent { get; }
member this.ResetsSent : int64
Public MustOverride ReadOnly Property ResetsSent As Long
Property Value
An Int64 value that specifies the total number of TCP segments sent with the reset flag set.
Examples
The following code example displays segment information.
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
Remarks
TCP resets are specified using the reset (RST) control bit in the TCP header.
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา