TcpStatistics.SegmentsSent 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得已傳送的傳輸控制通訊協定 (TCP) 區段數目。
public:
abstract property long SegmentsSent { long get(); };
public abstract long SegmentsSent { get; }
member this.SegmentsSent : int64
Public MustOverride ReadOnly Property SegmentsSent 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
備註
此數據報括針對目前已建立的連線傳送的區段,但不包含只包含重新傳輸的八位的區段。